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
小程序开发工具中出错
Starting dev server...
env
os win32-x64
cpu 8 cores
memory 49022.04 MB (use 4144.00 MB)
compiler
version 0.107.0
engine 5
paths
C:\project\myApp\dist
output C:\Users\xxx\AppData\Local\Temp_volans_temp_\mini_ide_dists\e61f0\ng-main
build
watch on
cache on (7867c71f)
parallel on (4 workers)
minify off
sourcemap on (script style, lazy)
javascript babel 6 (es6)
runtime
sdk 2.x
subpackage off
devserver
apiserver on (6600)
connection on
hmr off
lazy off
node:internal/process/promises:389
new UnhandledPromiseRejection(reason);
^
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "TypeError: Cannot read properties of null (reading '_source')
at Object.normalize (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\errors\not-found.js:1:806)
at C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1622
at C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1140
at Array.map ()
at i.normalize (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1112)
at get errors [as errors] (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:965)
at s. (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\lifecycle-notify.js:1:1489)
at Generator.next ()
at C:\snapshot\builder\node_modules\tslib\tslib.js:170:75
at new Promise ()".
at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
at processPromiseRejections (node:internal/process/promises:470:17)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
code: 'ERR_UNHANDLED_REJECTION'
}
相关平台
支付宝小程序
小程序基础库: 1.x 2.x
使用框架: Vue 3
复现步骤
pnpm install -g @tarojs/cli
taro init myApp
cd myApp
pnpm install
pnpm run dev:alipay
👽 Taro v4.0.9
Tips:
Example:
$ NODE_ENV=production taro build --type alipay --watch
启动 开发者工具-项目目录 C:\project\myApp\dist
Prebundle dependencies:
@tarojs/plugin-framework-vue3/dist/runtime
@tarojs/runtime
@tarojs/shared
@tarojs/taro
✔ Webpack
Compiled successfully in 4.22s
编译 发现入口 src/app.ts
编译 发现页面 src/pages/index/index.vue
→ Watching... [1/22/2025, 11:23:25 PM]
期望结果
能在小程序开发环境中正确运行
实际结果
小程序开发工具中出错
Starting dev server...
env
os win32-x64
cpu 8 cores
memory 49022.04 MB (use 4144.00 MB)
compiler
version 0.107.0
engine 5
paths
C:\project\myApp\dist
output C:\Users\xxx\AppData\Local\Temp_volans_temp_\mini_ide_dists\e61f0\ng-main
build
watch on
cache on (7867c71f)
parallel on (4 workers)
minify off
sourcemap on (script style, lazy)
javascript babel 6 (es6)
runtime
sdk 2.x
subpackage off
devserver
apiserver on (6600)
connection on
hmr off
lazy off
node:internal/process/promises:389
new UnhandledPromiseRejection(reason);
^
UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "TypeError: Cannot read properties of null (reading '_source')
at Object.normalize (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\errors\not-found.js:1:806)
at C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1622
at C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1140
at Array.map ()
at i.normalize (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:1112)
at get errors [as errors] (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\issues\index.js:1:965)
at s. (C:\snapshot\builder\node_modules@ali\antcube-build\lib\build\webpack\plugin\lifecycle-notify.js:1:1489)
at Generator.next ()
at C:\snapshot\builder\node_modules\tslib\tslib.js:170:75
at new Promise ()".
at throwUnhandledRejectionsMode (node:internal/process/promises:389:7)
at processPromiseRejections (node:internal/process/promises:470:17)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v20.18.0
Dev server exited unexpectedly with code 1
Please try to restart by clicking 'Restart'
环境信息
The text was updated successfully, but these errors were encountered: