babel 开发汇总

问题指南

npm start

Q:由于 [email protected] 升级导致的 break change,transform-decorators-legacy 无需引入了,如果引入就会报以下错误:

1
2
3
4
5
6
7
8
9
$ npm start

Starting the development server...

Failed to compile.

./src/routes/orders/AllPaidOrderListPage.js
Module build failed: TypeError: Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null
at Array.map (<anonymous>)

A:
.webpackrc.js中的transform-decorators-legacy进行删除。

问题详情:
babel-tutorial1.png

vue-router-source-analysis 使用PM2守护Nodejs命令行程序
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×