Open MichailShcherbakov opened 1 year ago
I guess we could at least inform the new crxjs users to not select "js/ts + swc" while running npm init vite@latest
in the docs for now because its not a first issue #769
PS C:\repo\test-test> npm init vite@latest
Need to install the following packages:
create-vite@4.4.1
Ok to proceed? (y) y
√ Project name: ... vite-project
√ Select a framework: » React
√ Select a variant: » TypeScript + SWC
The official crxjs tutorial uses @vitejs/plugin-react
any idea why it doesn't work with swc? seems to be the direction most projects are moving
any idea why it doesn't work with swc? seems to be the direction most projects are moving
No idea. You're right about the swc and we will need to eventually make it supported in this project, but first we need to know why it does not work
Is this the one canonical issue tracking swc support? If so, could someone with access modify this issue:
title -> "Hot reload broken with @vitejs/plugin-react-swc"
(there are lots of other issues regarding HMR, would be good to have one place where this particular problem is tracked)
Interestingly according to this comment, this user seems to be having success with swc?
https://github.com/crxjs/chrome-extension-tools/issues/696#issuecomment-1785659180
Build tool
Vite
Where do you see the problem?
Describe the bug
While rendering page show the next error:
If I replace
@vitejs/plugin-react-swc
with@vitejs/plugin-react
then it will work wellReproduction
vite.config.ts
manifest.ts
content.tsx
Logs
No response
System Info
Severity
annoyance