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
编译 入口文件 src/app.tsx
{ TypeError: unknown: Property property of MemberExpression expected node to be of a type ["Identifier"] but instead got "StringLiteral"
at validate (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-types/lib/definitions/index.js:109:13)
at Object.validate (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-types/lib/definitions/core.js:412:50)
at Object.validate (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-types/lib/index.js:505:9)
at NodePath._replaceWith (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/replacement.js:176:7)
at NodePath.replaceWith (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/replacement.js:160:8)
at replaceAndEvaluateNode (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-plugin-transform-define/lib/index.js:117:12)
at processNode (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-plugin-transform-define/lib/index.js:143:5)
at PluginPass.Identifier (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-plugin-transform-define/lib/index.js:23:9)
at newFn (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/visitors.js:276:21)
at NodePath._call (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/node_modules/babel-traverse/lib/path/context.js:76:18) _babel: true }
编译 所有页面
(node:94127) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'pages' of undefined
at buildPages (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/src/weapp.js:1194:27)
at Object.build (/Users/new/.nvm/versions/node/v8.11.3/lib/node_modules/@tarojs/cli/src/weapp.js:2230:9)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
(node:94127) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:94127) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨ Done in 7.17s.
问题描述
config/dev.js 的defineConstants定义个config的,yarn dev:weapp直接报错. yarn dev:h5没问题
复现步骤
[复现问题的步骤]
期望行为
dev:weapp可以使用config这个常量。 目前换了个名字
系统信息
The text was updated successfully, but these errors were encountered: