使用' npm运行构建错误'

时间:2017-04-04 12:47:11

标签: node.js reactjs webpack

我正在使用react-boilerplate(https://www.github.com/react-boilerplate)来创建一个小应用程序。在为我的应用运行构建命令(DataGridView dataGridView2 = new DataGridView(); BindingSource bindingSource2 = new BindingSource(); dataGridView2.ColumnCount = 2; dataGridView2.Columns[0].Name = "FieldOne"; dataGridView2.Columns[0].DataPropertyName = "FieldOne"; dataGridView2.Columns[1].Name = "FieldTwo"; dataGridView2.Columns[1].DataPropertyName = "FieldTwo"; bindingSource1.DataSource = GetDataTable(); dataGridView1.DataSource = bindingSource1; )时,我看到以下警告:

npm run build

以下错误:

WARNING in asset size limit: 
The following asset(s) exceed the recommended size limit (250 kB)
This can impact web performance.
Assets:
0.a4edf518ed555866f5cd.chunk.js (286 kB)

ERROR in 0.a4edf518ed555866f5cd.chunk.js from UglifyJs
Unexpected token name «i», expected punc «;» 
[0.a4edf518ed555866f5cd.chunk.js:8982,11]

我无法弄清楚这个问题可能是什么,需要帮助解决这个问题。

0 个答案:

没有答案