failed to load config from D:\smart-canteen-manage-app\vite.config.js
14:58:08.557 error during build:
14:58:08.571 D:\smart-canteen-manage-app\node_modules\unimport\dist\shared\unimport.MMUMmZ45.cjs:424
14:58:08.591 importEntry.meta ??= {};
14:58:08.609 ^^^
14:58:08.625 SyntaxError: Unexpected token '??='
14:58:08.639 at wrapSafe (internal/modules/cjs/loader.js:1029:16)
14:58:08.658 at Module._compile (internal/modules/cjs/loader.js:1078:27)
14:58:08.680 at Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
14:58:08.702 at Object._require.extensions.<computed> [as .js] (file:///D:/smart-canteen-manage-app/node_modules/vite/dist/node/chunks/dep-c167897e.js:63974:17)
14:58:08.719 at Module.load (internal/modules/cjs/loader.js:979:32)
14:58:08.738 at Function.Module._load (internal/modules/cjs/loader.js:819:12)
14:58:08.757 at Module.require (internal/modules/cjs/loader.js:1003:19)
14:58:08.777 at require (internal/modules/cjs/helpers.js:107:18)
14:58:08.798 at Object.<anonymous> (D:\smart-canteen-manage-app\node_modules\unimport\dist\shared\unimport.D6_N7ILk.cjs:3:23)
14:58:08.818 at Module._compile (internal/modules/cjs/loader.js:1114:14)

7***@qq.com
- 发布:2025-04-30 08:50
- 更新:2025-04-30 09:36
- 阅读:41
1 个回复
DCloud_UNI_JBB
逻辑空赋值运算符node15起才支持,升级一下node版本试试