You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried CRXJS for the first time and love it!
I followed the docs to create my very first extension to get started. However, there was a type error in the vite.config.ts file.
import{defineConfig}from'vite'importreactfrom'@vitejs/plugin-react'import{crx}from'@crxjs/vite-plugin'// Cannot find module './manifest.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.ts(2732)importmanifestfrom'./manifest.json'exportdefaultdefineConfig({plugins: [react(),crx({ manifest }),],})
I checked the tsconfig.json file to set resolveJsonModule option to true but it was already set to true. There is another tsconfig file called tsconfig.node.json and I added these two options to it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks,
I just tried CRXJS for the first time and love it!
I followed the docs to create my very first extension to get started. However, there was a type error in the
vite.config.ts
file.I checked the
tsconfig.json
file to setresolveJsonModule
option to true but it was already set to true. There is another tsconfig file calledtsconfig.node.json
and I added these two options to it.The error was resolved and the server is running flawlessly. If you have the same type error, give it a try.
Please let me know if I made any mistake, thanks for all the contributors!
Beta Was this translation helpful? Give feedback.
All reactions