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
It raises error because my nodejs doesn't support ?. (version 12.16.3)
failed to load config from /Users/sanshain/realkairo/apps/solid-app/vite.config.ts
error when starting dev server:
/Users/sanshain/realkairo/node_modules/vite-plugin-solid/dist/cjs/index.js:29
userConfig.resolve.alias = normalizeAliases(userConfig.resolve?.alias);
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1047:16)
at Module._compile (internal/modules/cjs/loader.js:1097:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/Users/sanshain/realkairo/apps/solid-app/vite.config.ts:30:43)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.require.extensions.<computed> [as .ts] (/Users/sanshain/realkairo/node_modules/vite/dist/node/chunks/dep-efe32886.js:46235:20)
The text was updated successfully, but these errors were encountered:
Hi @3Shain, I see your issue. I reckon I didn't put much thoughts into that as I considered that most environment using vite would end up using relatively recent version of node / browser. That being said this is a valid point that doesn't involve much changes.
I'll lower the target for CJS.
Thanks for bringing this to my attention and sorry for the delay :)
It raises error because my nodejs doesn't support
?.
(version 12.16.3)The text was updated successfully, but these errors were encountered: