Taro项目遇到的问题

1.

https://taro-ui.aotu.io/#/docs/questions

请在Taro项目根目录找到 config/index.js 文件中的h5项,添加如下:

h5: {
  ...

 esnextModules: ['taro-ui']
}

2.

原则:少什么就装什么

少了 babel-plugin-transform-decorators-legacy ,那就npm install babel-plugin-transform-decorators-legacy --save 

run dev少了包,那就--save-dev,run build少了包,那就--save

 

猜你喜欢

转载自www.cnblogs.com/ww01/p/10656465.html