taro3 init 项目,执行npm run dev:h5 报以下错误,紧急,请大佬帮忙解决下问题。
-
common.ts?d785:217 Uncaught (in promise) TypeError: Cannot read property 'onShareAppMessage' of undefined
at createPageConfig (common.ts?d785:217)
at _callee$ (router.ts?051f:162)
at tryCatch (runtime.js?96cf:45)
at Generator.invoke [as _invoke] (runtime.js?96cf:274)
at Generator.prototype.<computed> [as next] (runtime.js?96cf:97)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
at _next (asyncToGenerator.js?1da1:25)
createPageConfig @ common.ts?d785:217
_callee$ @ router.ts?051f:162
tryCatch @ runtime.js?96cf:45
invoke @ runtime.js?96cf:274
prototype.<computed> @ runtime.js?96cf:97
asyncGeneratorStep @ asyncToGenerator.js?1da1:3
_next @ asyncToGenerator.js?1da1:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js?1da1:13
_next @ asyncToGenerator.js?1da1:25
(anonymous) @ asyncToGenerator.js?1da1:32
(anonymous) @ asyncToGenerator.js?1da1:21
render @ router.ts?051f:119
createRouter @ router.ts?051f:176
(anonymous) @ app.config.ts?1aa0:42
./src/app.config.ts @ app.js:2352
webpack_require @ app.js:64
0 @ app.js:2447
webpack_require @ app.js:64
(anonymous) @ app.js:199
(anonymous) @ app.js:202