HorusGoul / vite-plugin-stylex

Vite Plugin for StyleX
MIT License
110 stars 11 forks source link

it seems plugin does not work correctly in qwik #35

Open dulee-dev opened 5 months ago

dulee-dev commented 5 months ago

I follow your direction with new qwik-city-app

  1. npm craete qwik
  2. npm install --save-dev vite-plugin-stylex
  3. npm install --save @stylexjs/stylex
  4. add the plugin to vite config
  5. open src/global.css and add "@stylex stylesheet;"
  6. and try stylex in src/routes/index.tsx

but style is not applied

it seems the value of props are broken

Screenshot 2024-01-22 at 2 00 53 AM Screenshot 2024-01-22 at 2 00 45 AM

and my vscode show error when i import "vite-plugin-stylex" (but no error in compile)

Screenshot 2024-01-22 at 1 55 16 AM

thank you for your efforts

neotheprogramist commented 4 months ago

bump! I have the same issue in vite.config.ts

dulee-dev commented 4 months ago

i use pandacss now and very happy with it 😄

HorusGoul commented 4 months ago

Please share a repository that reproduces the issue.

ziimakc commented 4 months ago

Same issue. Problem with types it seems because package.json missing

  "main": "./dist/index.mjs",
  "types": "./dist/index.ts",

You can try import import styleX from "vite-plugin-stylex/dist/index.mjs";, but it just produces other issues