#solid styled doesnt seem to work for me

20 messages · Page 1 of 1 (latest)

sand fulcrum
#

whenever i start a new project with solid styled it just doesnt work and im not sure why

sage jungle
#

It would be helpful to know:

  • What bundler are you using, or perhaps template
  • If there are any errors, please show
  • Perhaps console logs
sand fulcrum
#

sorry it took so long

sage jungle
#

It was an outdated config

#

(I should definitely make a PR)

#

but anyways, I think you should follow part of the config here

sand fulcrum
#

i updated my vite config https://github.com/Kisuyo/todo/blob/master/vite.config.ts
but get error ```C:\Users\Igor\Documents\code\to do list\node_modules\solid-start\bin.cjs:528
if (typeof config.solidOptions.adapter === "string") {
^

TypeError: Cannot read properties of undefined (reading 'adapter') at resolveAdapter (C:\Users\Igor\Documents\code\to do list\node_modules\solid-start\bin.cjs:528:36)
at resolveConfig (C:\Users\Igor\Documents\code\to do list\node_modules\solid-start\bin.cjs:537:26)
at async C:\Users\Igor\Documents\code\to do list\node_modules\solid-start\bin.cjs:120:20

Node.js v18.12.1```

GitHub

Contribute to Kisuyo/todo development by creating an account on GitHub.

sage jungle
#

well I mean you shouldn't replace it as a whole

#

Replace vite-plugin-solid with solid-start/vite

sand fulcrum
#

thanks it seems to work❤️

sand fulcrum
#

@sage jungle the problem came back the css work in root but not in routes like index.tsx

sand fulcrum
#

like right now im adding all my styles in root.tsx global styles

sage jungle
#

I would really need to know if there's any error logs

still root
#

no errors, and styling is applied.

sand fulcrum