less / less.js

Less. The dynamic stylesheet language.
http://lesscss.org
Apache License 2.0
16.99k stars 3.41k forks source link

less does not compile using vite anymore #4257

Closed BananaAcid closed 5 months ago

BananaAcid commented 6 months ago

First up: I don't know if this is the right project to post it, but it might be in the intrest of the Less.js project to work with vite, I hope.

The Error:

[vite-node] [plugin:vite:vue] [SyntaxError] ./node_modules/.pnpm/nuxt@3.9.0_less@4.2.0_vite@5.0.10/node_modules/nuxt/dist/app/components/nuxt-root.vue:3:5
 ERROR  Pre-transform error: @vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.

To reproduce: codesandbox.io

  1. nuxt3 framework
  2. template with lang="less" (aktually not needed, having installed by pnpm and runnung npm run dev through nuxi->vite is enough to error out)

and it brakes.

Current behavior:

Expected behavior:

to work with vite

Environment information:

matthew-dean commented 5 months ago

Not only is this not Less-related, it doesn't even seem to be related to Less in the context of your project. @vnode-mounted is not a Less error.