echarts-taro3-react
echarts-taro3-react copied to clipboard
使用你提供的“官方例子”都不能正常运行,可以解决一下吗?
模拟器不能运行吗?可以提供一下代码
yarn install后,运行yarn run dev:weapp。报一下错误。
yarn run dev:weapp
yarn run v1.22.10
$ npm run build:weapp -- --watch
npm WARN lifecycle The node binary used for scripts is /var/folders/7p/clgtpff94fg48d3r1rsh265w0000gn/T/yarn--1622121360617-0.5964084967926753/node but npm is using /Users/guangli/.nvm/versions/node/v10.13.0/bin/node itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
[email protected] build:weapp /Users/guangli/bdp-project/echarts-taro3-react-master taro build --type weapp "--watch"
👽 Taro v3.2.5
{ TypeError: /Users/guangli/bdp-project/echarts-taro3-react-master/config/index.js: (0 , _helperModuleTransforms.getModuleName) is not a function at PluginPass.exit (/Users/guangli/.config/yarn/global/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js:143:70) at newFn (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/visitors.js:175:21) at NodePath._call (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:55:20) at NodePath.call (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:42:17) at NodePath.visit (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:101:8) at TraversalContext.visitQueue (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:116:16) at TraversalContext.visitSingle (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:85:19) at TraversalContext.visit (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:144:19) at Function.traverse.node (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/index.js:82:17) at traverse (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/index.js:62:12) code: 'BABEL_TRANSFORM_ERROR' } (node:62816) UnhandledPromiseRejectionWarning: TypeError: /Users/guangli/.config/yarn/global/node_modules/@tarojs/cli/dist/presets/index.js: (0 , _helperModuleTransforms.getModuleName) is not a function at PluginPass.exit (/Users/guangli/.config/yarn/global/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js:143:70) at newFn (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/visitors.js:175:21) at NodePath._call (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:55:20) at NodePath.call (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:42:17) at NodePath.visit (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/path/context.js:101:8) at TraversalContext.visitQueue (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:116:16) at TraversalContext.visitSingle (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:85:19) at TraversalContext.visit (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/context.js:144:19) at Function.traverse.node (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/index.js:82:17) at traverse (/Users/guangli/.config/yarn/global/node_modules/@tarojs/helper/node_modules/@babel/traverse/lib/index.js:62:12) (node:62816) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 2) (node:62816) [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 14.31s.
没有任何报错,但是就是没有出现
没有任何报错,但是就是没有出现
我也是
没有任何报错,但是就是没有出现
我也是
解决了吗