0

I tried to use two style sheets for my header component, one for the layout and the other is for the color scheme. I tried all means of concatenation but still giving me error. I can combine two css files into one but that is not in my plan yet.

import style1 from './header.dark.css?inline'
import style2 from './header.css?inline'
...
let stylex= style2.concat(style1)
useStylesScoped$(stylex);

the error

[plugin:vite-plugin-qwik] Qrl($) scope is not a function, but it's capturing local identifiers: stylex

resti
  • 7
  • 2
  • 6
  • turns out you dont need to merge the styles, just call useStylesScoped$ for each style is good enough. – resti Aug 27 '23 at 04:22

0 Answers0