Open merceyz opened 1 year ago
I have the same issue , did you solve it ?
vite build
vite v4.4.4 building for production... ✓ 1207 modules transformed. ✓ built in 6.01s [vite-plugin-vue2] Could not load /Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/vue2-google-maps/dist/components/placeInputImpl.js?vue&type=script&src&from=%2FUsers%2Fhumbertozuluaga%2FDocuments%2FPROYECTOS%2Fadsmovil-dsp%2Fadsmovil-dsp-front%2Fnode_modules%2Fvue2-google-maps%2Fdist%2Fcomponents%2FplaceInput.vue&lang.js?commonjs-exports (imported by node_modules/vue2-google-maps/dist/components/placeInputImpl.js?vue&type=script&src&from=%2FUsers%2Fhumbertozuluaga%2FDocuments%2FPROYECTOS%2Fadsmovil-dsp%2Fadsmovil-dsp-front%2Fnode_modules%2Fvue2-google-maps%2Fdist%2Fcomponents%2FplaceInput.vue&lang.js): The argument 'path' must be a string or Uint8Array without null bytes. Received '\x00/Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/vue2-google-maps/dist/components/pl... error during build: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received '\x00/Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/vue2-google-maps/dist/components/pl... at Object.openSync (fs.js:489:10) at Object.readFileSync (fs.js:393:35) at Object.load (/Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/vite-plugin-vue2/dist/index.js:67:41) at file:///Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/rollup/dist/es/shared/node-entry.js:25336:40 at async PluginDriver.hookFirstAndGetPlugin (file:///Users/humbertozuluaga/Documents/PROYECTOS/adsmovil-dsp/adsmovil-dsp-front/node_modules/rollup/dist/es/shared/node-entry.js:25236:28)
@merceyz @hzuluaga I'm having the same issue. Did one of you solve this?
same here EDIT: @arjen-mediasoep @hzuluaga i managed to fix this using patch package and removing place inputs. In my use case, i didn't needed it
Hi, I fixed this issue by modifying node_modules/vue2-google-maps/components/placeInput.vue file.
All you have to do is just replace
with
If this is a working solution, could this be fixed on the packge with a merge request please ? This way we don't have to manually change it after each npm install or update ;) Thanks !
When running
vite build
it fails with the following errorTo reproduce
Environment
Extra
This is the same issue as https://github.com/vitejs/vite-plugin-vue2/issues/31