Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rburgst/vite-preact-component
- Owner: rburgst
- Created: 2022-01-19T16:26:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-20T12:24:20.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T17:53:07.162Z (about 2 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'
```