Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rburgst/vite-preact-component

sample repo showing a problem with preact library and vite
https://github.com/rburgst/vite-preact-component

Last synced: 2 days ago
JSON representation

sample repo showing a problem with preact library and vite

Awesome Lists containing this project

README

        

Sample repo showing a problem when trying to create a preact library component with vite.

To reproduce do the following:
1. cd vite-lib
2. yarn install
3. yarn build
4. cd ../vite-app
5. yarn install
6. yarn dev
7. open the browser at http://localhost:3000

## Expected:

you should see the standard page with a counter components

## Actual:

You get an empty screen with the error message in the javascript console:

```
Uncaught SyntaxError: The requested module '/node_modules/.vite/preact.js?v=ee72ecf1' does not provide an export named 'default'
```