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
As soon as I import import devtools from 'solid-devtools/vite';
in vite.config.js. I get the error
Using "solid-devtools": "^0.27.3",
and"solid-js": "^1.6.6",
I can't write type: module in package.json because it starts breaking the other code. Can anyone please help with the solution for this?
`✘ [ERROR] No known conditions for "./vite" specifier in "solid-devtools" package [plugin externalize-deps]
node_modules/esbuild/lib/main.js:1360:27:
1360 │ let result = await callback({
`
The text was updated successfully, but these errors were encountered:
Then after start I got [ERROR] Failed to resolve "solid-devtools/vite". This package is ESM only but it was tried to load by require. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details. [plugin externalize-deps]. Following the link, a solution provided: adding "type": "module" to the nearest package.json. After that fix, it starts successfully.
Also not ideal but worth noting that the other solution on that Vite mentions, changing vite.config.ts -> vite.config.mts, seems to fix this issue without impacting the rest of the project.
As soon as I import
import devtools from 'solid-devtools/vite';
in vite.config.js. I get the error
Using "solid-devtools": "^0.27.3",
and"solid-js": "^1.6.6",
I can't write type: module in package.json because it starts breaking the other code. Can anyone please help with the solution for this?
`✘ [ERROR] No known conditions for "./vite" specifier in "solid-devtools" package [plugin externalize-deps]
The text was updated successfully, but these errors were encountered: