⠋ Compiling...ℹ 「wds」: Project is running at http://192.168.0.106:10086/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/smarttang/Desktop/taro/dist
ℹ 「wds」: 404s will fallback to /index.html
http://192.168.0.106:10086/
./node_modules/mp-colorui/dist/h5/components/accordion/index.js
Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
✅ Compiled successfully!
✅ Compiled successfully!
🙅 Failed to compile.
./node_modules/mp-colorui/dist/h5/components/accordion/index.js
Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
🙅 Failed to compile.
./node_modules/mp-colorui/dist/h5/components/accordion/index.js
Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
为了更好的定位以及解决问题,在提交 ISSUE 时,我希望你
mp-colorui
的版本号 最新的版本,0.6.19Taro
的版本号 v3.0.11export default { name: "Index", methods: { handleClick(item, index) { this.$taro.navigateTo({ url:
/pages/view/test/index?id=${index}
, }); }, }, };➜ taro git:(master) ✗ npm run dev:h5
👽 Taro v3.0.11
⠋ Compiling...ℹ 「wds」: Project is running at http://192.168.0.106:10086/ ℹ 「wds」: webpack output is served from / ℹ 「wds」: Content not from webpack is served from /Users/smarttang/Desktop/taro/dist ℹ 「wds」: 404s will fallback to /index.html http://192.168.0.106:10086/
ℹ️ Listening at http://0.0.0.0:10086/
监听文件修改中...
🙅 Failed to compile.
./node_modules/mp-colorui/dist/h5/components/accordion/index.js Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js): SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
25 | } 26 | }, [show]);
Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
✅ Compiled successfully!
✅ Compiled successfully!
🙅 Failed to compile.
./node_modules/mp-colorui/dist/h5/components/accordion/index.js Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js): SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
25 | } 26 | }, [show]);
Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.
🙅 Failed to compile.
./node_modules/mp-colorui/dist/h5/components/accordion/index.js Module build failed (from ./node_modules/@tarojs/webpack-runner/node_modules/babel-loader/lib/index.js): SyntaxError: /Users/smarttang/Desktop/taro/node_modules/mp-colorui/dist/h5/components/accordion/index.js: Support for the experimental syntax 'jsx' isn't currently enabled (27:12):
25 | } 26 | }, [show]);
Add @babel/plugin-transform-react-jsx (https://git.io/vb4yd) to the 'plugins' section of your Babel config to enable transformation.