Latest plugin version 1.4.11 not working with latests vite versions: 2.6.7 and 2.6.9
See original GitHub issueDescribe the bug
Testing some issue on vitesse
template I’ve found that using latest version of vite 2.6.9
with latest windicss
plugin 1.4.11
the plugin fails on windows, I don’t know if on another OS is also failing.
Downgrading plugin to 1.4.9
or 1.4.10
versions seems to work with vite 2.6.7 and 2.6.9
versions.
error when starting dev server:
Error: Cannot find module 'node:module'
Require stack:
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\jiti@1.12.8\node_modules\jiti\dist\jiti.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\jiti@1.12.8\node_modules\jiti\lib\index.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\@windicss+config@1.4.11\node_modules\@windicss\config\dist\index.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\@windicss+plugin-utils@1.4.11\node_modules\@windicss\plugin-utils\dist\index.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\vite-plugin-windicss@1.4.11_vite@2.6.9\node_modules\vite-plugin-windicss\dist\index.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\vite.config.ts
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\vite@2.6.9\node_modules\vite\dist\node\chunks\dep-be032392.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\vite@2.6.9\node_modules\vite\dist\node\cli.js
- F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\vite@2.6.9\node_modules\vite\bin\vite.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:92:18)
at F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\jiti@1.12.8\node_modules\jiti\dist\jiti.js:1:51704
at F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\jiti@1.12.8\node_modules\jiti\dist\jiti.js:1:55809
at Object.<anonymous> (F:\work\projects\quini\GitHub\issue-210-vitesse-repo\node_modules\.pnpm\jiti@1.12.8\node_modules\jiti\dist\jiti.js:1:55838)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
Minimal Reproductions
clone the linked repo on the vitesse
template repo issue and play with vite and windicss plugin versions, then just run pnpm run dev
to see the error
Versions
- vite-plugin-windicss:
1.4.11
- vite:
2.6.7
and2.6.9
- framework(vue/react/svelte/etc):
vue 3
Additonal Context see https://github.com/antfu/vitesse/issues/210#issuecomment-945821258
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
If HMR is not handled by Vite or a plugin, a full reload will happen. Also if there is a dependency loop, a...
Read more >ChangeLog64-current.txt
This package has not been a security fix since NSS 3.23, so we'll drop it back to the previous version to work around...
Read more >Older Announcements - GnuCash
This is an archive of announcements that once appeared on the GnuCash home page.
Read more >[fedora-arm] arm rawhide report: 20140712 changes
... Algorithms for specialized vertex coloring problems New package: ... NetworkManager VPN plugin for openconnect New package: ...
Read more >WordPress - CVE - Search Results - MITRE
CVE-2022-4125, The Popup Manager WordPress plugin through 1.6.6 does not have ... which could allow attackers to make a logged in admin create...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@antfu confirmed that works with latest windicss plugin and latest vite on node 15 on windows
I’m experiencing the same issue for vite 2.7.6 and vite-plugin-windicss 1.6.1.
Any solutions?