I am getting this error when trying to setup solid-styled with vite. It's possible that I am missing something small here but I have failed to figure it out:
yarn run v1.22.19
$ vite
failed to load config from /Users/ammarahmed/Repos/apps/openotp/vite.config.ts
error when starting dev server:
TypeError: (0 , import_vite_plugin_solid_styled.default) is not a function
at Object.<anonymous> (/Users/ammarahmed/Repos/apps/openotp/vite.config.ts:42:49)
at Module._compile (node:internal/modules/cjs/loader:1165:14)
at Object._require.extensions.<computed> [as .js] (file:///Users/ammarahmed/Repos/apps/openotp/node_modules/vite/dist/node/chunks/dep-4d3eff22.js:64524:24)
at Module.load (node:internal/modules/cjs/loader:1043:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1067:19)
at require (node:internal/modules/cjs/helpers:103:18)
at loadConfigFromBundledFile (file:///Users/ammarahmed/Repos/apps/openotp/node_modules/vite/dist/node/chunks/dep-4d3eff22.js:64532:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async loadConfigFromFile (file:///Users/ammarahmed/Repos/apps/openotp/node_modules/vite/dist/node/chunks/dep-4d3eff22.js:64388:28)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I am getting this error when trying to setup solid-styled with
vite
. It's possible that I am missing something small here but I have failed to figure it out:vite.config.ts
:package.json
:SolidJS Version: 1.7.5