davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

v0.11.0 in Windows has error #29

Closed agrozyme closed 11 months ago

agrozyme commented 11 months ago

v0.11.0 has Error, But v0.9.0 is OK

[plugin:vite:import-analysis] Failed to resolve import "D:EnterpriseTaiheite-quasar
ode_modulesite-plugin-node-polyfillsshimsdistindex.js" from "src\main.ts". Does the file exist?
D:/Enterprise/Taihe/vite-quasar/src/main.ts:1:43
1  |  import { Buffer as BufferPolyfill } from 'D:\Enterprise\Taihe\vite-quasar\node_modules\vite-plugin-node-polyfills\shims\dist\index.js'
   |                                            ^
2  |  window.Buffer = BufferPolyfill
3  |  import { global as globalPolyfill } from 'D:\Enterprise\Taihe\vite-quasar\node_modules\

Screenshot of Vite + Vue + TS

6abotage commented 11 months ago

Hello, I just tested v0.11.0 on my mac and I also have an error with the buffer polyfill. It works in v0.9.0 and v0.10.0 So I don't think the problem is based on the operating system windows

vexxvakan commented 11 months ago

Can confirm here as well. 0.10.0 is working fine, 0.11.0 does not at all.

davidmyersdev commented 11 months ago

Fixed in v0.11.1.