Open chhpt opened 7 months ago
This is an upstream issue with unimport
, here's a related PR, just doesn't cover JSX/TSX files: https://github.com/unjs/unimport/pull/229
I'll try and open a PR soon.
Looks like unimport
is looking for index files when importing the directory (with an index file in it)...
But it doesn't look for JSX/TSX extensions...
So it tries to read the directory as a file, and we get this error
Quick fix:
-export * from './iframe'
+export * from './iframe/index.tsx'
I created an issue on unimport
, will probably open a PR at some point once I figure out how to setup a valid test.
Describe the bug
Run dev failed with the following error when there have a components folder
To Reproduce
Open this stackblitz link https://stackblitz.com/~/github.com/chhpt/wxt-starter, or clone this repo https://github.com/chhpt/wxt-starter
Steps to reproduce the bug using the reproduction:
pnpm i
Expected behavior
Run dev successed
Screenshots
Environment
Additional context