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
报错信息:
Rsbuild v1.5.12
error Failed to load file with jiti: D:\project\company\fleetview\config\rsbuild\build.config.mjs
error Failed to build.
error Cannot find native binding. npm has a bug related to optional dependencies ([BUG] Platform-specific optional dependencies not being included in package-lock.json when reinstalling with node_modules present npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at D:/project/company/fleetview/node_modules/@napi-rs/image/index.js:500:11
at eval_evalModule (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:5:3522)
at D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:5:2502
at async import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async D:/project/company/fleetview/node_modules/@rsbuild/plugin-image-compress/dist/index.js:3:14
at async import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async D:/project/company/fleetview/config/rsbuild/build.config.mjs:2:28
at async Function.import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async loadConfig_loadConfig (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9517:28)
at async init_loadConfig (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9544:41)
at async createRsbuild (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:7610:61)
at async init_init (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9562:117)
at async CAC. (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9687:31)
error: script "build:dev" exited with code 1
系统: windows10专业版
版本号: 22H2
操作系统内部版本: 19045.2728
处理器: Intel(R) Core(TM) Ultra 5 235U 2.00 GHz
系统类型: 64位操作系统,基于x64的处理器
4 "@rsbuild/plugin-image-compress": "^1.3.1"
Rsbuild v1.5.12
error Failed to load file with jiti: D:\project\company\fleetview\config\rsbuild\build.config.mjs
error Failed to build.
error Cannot find native binding. npm has a bug related to optional dependencies ([BUG] Platform-specific optional dependencies not being included in
package-lock.jsonwhen reinstalling withnode_modulespresent npm/cli#4828). Please trynpm iagain after removing both package-lock.json and node_modules directory.at D:/project/company/fleetview/node_modules/@napi-rs/image/index.js:500:11
at eval_evalModule (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:5:3522)
at D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:5:2502
at async import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async D:/project/company/fleetview/node_modules/@rsbuild/plugin-image-compress/dist/index.js:3:14
at async import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async D:/project/company/fleetview/config/rsbuild/build.config.mjs:2:28
at async Function.import (D:\project\company\fleetview\node_modules\jiti\dist\jiti.cjs:6:1734)
at async loadConfig_loadConfig (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9517:28)
at async init_loadConfig (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9544:41)
at async createRsbuild (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:7610:61)
at async init_init (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9562:117)
at async CAC. (file:///D:/project/company/fleetview/node_modules/@rsbuild/core/dist/index.js:9687:31)
error: script "build:dev" exited with code 1