windicss / nuxt-windicss

🍃 Windi CSS for Nuxt ⚡
331 stars 24 forks source link

Value Auto-infer calc function is not working #111

Open chrislutw opened 3 years ago

chrislutw commented 3 years ago

Describe the bug use w-[calc(400px*var(--foo))] in https://windicss.org/play is working, but nuxt-windicss-module is not working

env: nuxt: 2.15.4 nuxt-windicss: 1.1.3

To Reproduce Steps to reproduce the behavior:

  1. open codesandbox link
  2. see error
  3. open windi play link
  4. see working state

Expected behavior if working then you can see a red block

Screenshots image image

Additional context w-[calc(400px)] if not calculate in calc function it's working

harlan-zw commented 3 years ago

Thanks for the issue @chrislutw

Hm I was hoping this would just be an issue with updating the core package but that didn't solve it.

Guessing this is an issue with the plugin-utils from the vite package that this one uses, so I'll need to dig a bit deeper into it.

chrislutw commented 2 years ago

update: upgrade to 1.2.2 and still not working.

husky-wdy commented 2 years ago

update: upgrade to 2.3.1 and still not working.

w-100px mt-100px .... Hot update not working. npm run dev After restart, The above class will be generated.

"nuxt": 2.15.2 "nuxt-windicss": 2.3.1