Open mp3por opened 2 months ago
<script type="module" src="main.tsx"></script>
</body>
in your index.html - change it to full path and i will work (like i have in my project <script type="module" src="/src/entrypoints/pages/index.tsx"></script>
)
Other thing i discovered was missing
root: '.',
in vite.config.ts
Build tool
Vite
Where do you see the problem?
Describe the bug
When I run
npm run dev
everything compile and a page is opened. However I get this error and a blank page.If I move the files of the popup in the
src
directory as on themain
branch of this repo everything works.TypeError: Failed to fetch dynamically imported module: http://localhost:5173/main.tsx?import&t=1724918156329
Reproduction
https://github.com/mp3por/vite-plugin-top-level-await-worker-issue/tree/crxjs-bug
Logs
No response
System Info
Severity
blocking all usage of RPCE