14:43:33.832 项目 'uniappVue3Demo3' 开始编译...
14:43:34.569 D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\vite\plugins\vitejs\plugins\asset.js:87
14:43:34.579 const url = await fileToUrl(id, config, options?.isAndroidX
14:43:34.579 ^
14:43:34.585 SyntaxError: Unexpected token '.'
14:43:34.585 at wrapSafe (internal/modules/cjs/loader.js:915:16)
14:43:34.589 at Module._compile (internal/modules/cjs/loader.js:963:27)
14:43:34.590 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
14:43:34.595 at Module.load (internal/modules/cjs/loader.js:863:32)
14:43:34.595 at Function.Module._load (internal/modules/cjs/loader.js:708:14)
14:43:34.599 at Module.require (internal/modules/cjs/loader.js:887:19)
14:43:34.599 at require (internal/modules/cjs/helpers.js:74:18)
14:43:34.602 at Object.<anonymous> (D:\HBuilderX\plugins\uniapp-cli-vite\node_modules\@dcloudio\uni-cli-shared\dist\vite\utils\plugin.js:5:17)
14:43:34.606 at Module._compile (internal/modules/cjs/loader.js:999:30)
14:43:34.608 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
孤独友
- 发布:2024-06-27 14:54
- 更新:2024-08-14 13:44
- 阅读:416
3 个回复
DCloud_UNI_yuhe
检查一下代码,这可能是代码写错了,多个 '.'
h***@163.com
解决了吗兄弟
蔡cai
const url = await fileToUrl(id, config, options?.isAndroidX这个后面少了个括号吧?
蔡cai
贴一下代码
2024-08-14 13:45
h***@163.com
解决了 我的是node版本太低了,切换高版本的就跑起来了
2024-08-14 13:53