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 encountered this error when using unocss vscode extention. I already opened issue in unocss repo unocss/unocss#2088.
When I try to load vite.config with @sveltejs/vite-plugin-svelte or vite-plugin-solid plugin i get this error.
/home/melkam/unconfig-bug/node_modules/.pnpm/[email protected][email protected]/node_modules/vitefu/src/index.js:15
const { createRequire } = (await Promise.resolve().then(() => require('module'))).default;
^^^^^^^
SyntaxError: Unexpected identifier
at new Script (node:vm:100:7)
at createScript (node:vm:259:10)
at Object.runInThisContext (node:vm:307:10)
at jiti (/home/melkam/unconfig-bug/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:5:24838)
at /home/melkam/unconfig-bug/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite-plugin-solid/dist/esm/index.mjs:8:15
at jiti (/home/melkam/unconfig-bug/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:5:25030)
at /home/melkam/unconfig-bug/vite.config.ts:2:47
at jiti (/home/melkam/unconfig-bug/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.js:5:25030)
at loadConfigFile (file:///home/melkam/unconfig-bug/node_modules/.pnpm/[email protected]/node_modules/unconfig/dist/index.mjs:145:11)
at async Object.load (file:///home/melkam/unconfig-bug/node_modules/.pnpm/[email protected]/node_modules/unconfig/dist/index.mjs:74:24)
at async file:///home/melkam/unconfig-bug/test.ts:1:47
The text was updated successfully, but these errors were encountered:
MellKam
changed the title
"SyntaxError: Unexpected identifier" when loading @sveltejs/vite-plugin-svelte or vite-plugin-solid plugin
"SyntaxError: Unexpected identifier" when loading vite.config with @sveltejs/vite-plugin-svelte or vite-plugin-solid plugin
Feb 19, 2023
MellKam
changed the title
"SyntaxError: Unexpected identifier" when loading vite.config with @sveltejs/vite-plugin-svelte or vite-plugin-solid plugin
"SyntaxError: Unexpected identifier" when loading vite.config with @sveltejs/vite-plugin-svelte or vite-plugin-solid plugins
Feb 19, 2023
Describe the bug
I encountered this error when using unocss vscode extention. I already opened issue in unocss repo unocss/unocss#2088.
When I try to load vite.config with
@sveltejs/vite-plugin-svelte
orvite-plugin-solid
plugin i get this error.Reproduction
https://codesandbox.io/p/sandbox/unconfig-vite-solid-bug-2wrobj
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: