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
TypeError: Cannot read property 'content' of undefined
at TaroMiniPlugin. (/Users/z/dev/hello-tarojs/node_modules/@tarojs/mini-runner/src/plugins/MiniPlugin.ts:649:91)
at Generator.next ()
at fulfilled (/Users/z/dev/hello-tarojs/node_modules/@tarojs/mini-runner/dist/plugins/MiniPlugin.js:5:58)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:93:5)
npm ERR! code 1
npm ERR! path /Users/z/dev/hello-tarojs
npm ERR! command failed
npm ERR! command sh -c taro build --type weapp "--watch"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/z/.npm/_logs/2021-02-05T03_36_22_208Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
相关平台
微信小程序
复现仓库
https://gitee.com/mrzzcn/hello-tarojs
小程序基础库: 1
使用框架: React
复现步骤
taro init hello-tarojs
cp app.config.ts app.config.weapp.ts
yarn dev:weapp
期望结果
正常编译
实际结果
报错
yarn run v1.22.10
$ npm run build:weapp -- --watch
👽 Taro v3.0.26
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Tips: 预览模式生成的文件较大,设置 NODE_ENV 为 production 可以开启压缩。
Example:
$ NODE_ENV=production taro build --type weapp --watch
生成 工具配置 /Users/z/dev/hello-tarojs/dist/project.config.json
编译 发现入口 src/app.ts
编译 发现页面 src/pages/index/index.tsx
⠏ 正在编译...Cannot read property 'content' of undefined
Cannot read property 'content' of undefined
node:internal/process/promises:227
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: Cannot read property 'content' of undefined
at TaroMiniPlugin. (/Users/z/dev/hello-tarojs/node_modules/@tarojs/mini-runner/src/plugins/MiniPlugin.ts:649:91)
at Generator.next ()
at fulfilled (/Users/z/dev/hello-tarojs/node_modules/@tarojs/mini-runner/dist/plugins/MiniPlugin.js:5:58)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:93:5)
npm ERR! code 1
npm ERR! path /Users/z/dev/hello-tarojs
npm ERR! command failed
npm ERR! command sh -c taro build --type weapp "--watch"
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/z/.npm/_logs/2021-02-05T03_36_22_208Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
环境信息
补充信息
此处:https://github.com/NervJS/taro/blob/next/packages/taro-mini-runner/src/plugins/MiniPlugin.ts#L535
和此处:https://github.com/NervJS/taro/blob/next/packages/taro-mini-runner/src/plugins/MiniPlugin.ts#L647
计算 appConfigName 逻辑不一致
The text was updated successfully, but these errors were encountered: