当前位置:网站首页>Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions.
Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions.
2022-07-22 09:00:00 【Traces of running】
Run item is prompt Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions.
Turned out to be babel Version compatibility issues
It is amended as follows
"devDependencies": {
"babel-core": "^6.26.0",
"babel-eslint": "7.2.3",
"babel-loader": "^7.1.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-loose": "^8.0.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
Will be a higher version of babel Downgrade the configuration :
Sync degraded to :
{
"presets": [
["es2015", {
"loose": true }],
"stage-1",
"react"
],
"plugins": ["transform-decorators-legacy", "react-hot-loader/babel"]
}
again npm run dev Problem solving
边栏推荐
- 文件查找命令
- Linear table * sequential table (7000 words detailed explanation)
- vscode添加自定义注释
- Science and technology create value | cloud expansion technology is listed in the real list · top 100 of China's scientific and technological innovation brands list
- How to build a smart park with 5g and mobile edge computing servers
- Machine learning by Li Hongyi 5 Tips for neural network design
- Quantitative transaction Diary - summary in January 2021
- Weak foundation, shaking earth and mountains, Niu Ke brushes the title "II"
- 海思Hi3531||瑞芯微RK1109用rtsp服务器实现h264推流
- 海思[Hi3531] Onvif+Gosap自动搜索IP_Discovery和PTZ的实现
猜你喜欢
vscode添加自定义注释
Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions.
Self study golang [3.7map exercise code]
一种图片选择自定义控件
指针深度解刨《三》(数组的认知)
Formation and destruction of function stack frames (26 pictures help you understand function stack frames in depth)
La Fondation n'est pas assez solide pour secouer la montagne
"Everest" architecture strongly enables the third-generation Roewe rx5/ super hybrid erx5 to refresh the "ceiling" of product power
Ten year traders' heavy recommendation: simple and easy to operate breakthrough callback strategy
In quantitative trading, it is judged by the moving average system that the upward (downward) momentum is weakened
随机推荐
文件操作以及相关函数
OSPF routing control
drop、truncate和delete的用法区别
ASP. Net core deployment Manual: 2 Hyper-V virtual machine
自定义View——点击冒泡效果
Formation and destruction of function stack frames (26 pictures help you understand function stack frames in depth)
v-7
指针总结篇
mysql
一种图片选择自定义控件
Self study golang [3.4go language functions and pointers] define a function that returns one or more values. For the pointer of go language, the pointer cannot operate. For the parameter transmission
scrollIntoView
In quantitative trading, it is judged by the moving average system that the upward (downward) momentum is weakened
指针的深度解刨《七》(函数指针相关知识)
vscode 配置代码自动格式化加修复
刨根问底丨落后的技术,能否造出好卖的产品?
三星6818芯片火焰报警器驱动的编写
多线程与线程池
Self study golang [3.7map exercise code]
Science and technology create value | cloud expansion technology is listed in the real list · top 100 of China's scientific and technological innovation brands list