You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错如下
[commonjs--resolver] The argument 'path' must be a string or Uint8Array without null bytes. Received 'D:\smartpark\gzh\\x00D:\smartpark\gzh\src\@tarojs\plugin-platform-h5\dist\runtime.h5'�[39m
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
TypeError: The argument 'path' must be a string or Uint8Array without null bytes. Received 'D:\smartpark\gzh\\x00D:\smartpark\gzh\src\@tarojs\plugin-platform-h5\dist\runtime.h5'
at realpathSync (node:fs:2508:3)
at realpathSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:41:16)
at maybeRealpathSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:52:16)
at loadpkg (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:145:33)
at loadAsFileSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:116:19)
at Function.resolveSync [as sync] (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:102:17)
at resolveFrom (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:11609:22)
at resolvePackageData (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22157:19)
at tryNodeResolve (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22942:21)
at Object.resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22749:28)
at file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:25544:40
at PluginDriver.hookFirstAndGetPlugin (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
at resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:24117:26)
at ModuleLoader.resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:24531:15) {
code: 'PLUGIN_ERROR',
pluginCode: 'ERR_INVALID_ARG_VALUE',
plugin: 'commonjs--resolver',
hook: 'resolveId',
The text was updated successfully, but these errors were encountered:
相关平台
H5
浏览器版本: Chrome 132
使用框架: Vue 3
复现步骤
windows环境下 pnpm run build:h5
期望结果
正常打包
实际结果
打包报错
环境信息
补充信息
4.0.9 vite版本vue3
node版本:18.16.1
pnpm版本:8.6.4
报错如下
[commonjs--resolver] The argument 'path' must be a string or Uint8Array without null bytes. Received 'D:\smartpark\gzh\\x00D:\smartpark\gzh\src\@tarojs\plugin-platform-h5\dist\runtime.h5'�[39m
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
TypeError: The argument 'path' must be a string or Uint8Array without null bytes. Received 'D:\smartpark\gzh\\x00D:\smartpark\gzh\src\@tarojs\plugin-platform-h5\dist\runtime.h5'
at realpathSync (node:fs:2508:3)
at realpathSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:41:16)
at maybeRealpathSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:52:16)
at loadpkg (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:145:33)
at loadAsFileSync (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:116:19)
at Function.resolveSync [as sync] (D:\smartpark\gzh\node_modules.pnpm\[email protected]\node_modules\resolve\lib\sync.js:102:17)
at resolveFrom (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:11609:22)
at resolvePackageData (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22157:19)
at tryNodeResolve (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22942:21)
at Object.resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-c167897e.js:22749:28)
at file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:25544:40
at PluginDriver.hookFirstAndGetPlugin (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
at resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:24117:26)
at ModuleLoader.resolveId (file:///D:/smartpark/gzh/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:24531:15) {
code: 'PLUGIN_ERROR',
pluginCode: 'ERR_INVALID_ARG_VALUE',
plugin: 'commonjs--resolver',
hook: 'resolveId',
The text was updated successfully, but these errors were encountered: