DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

yesjin
yesjin

Posted on

ERROR : Plugin/Preset files are not allowed to export objects, only functions, 2022-08-29

ERROR : Plugin/Preset files are not allowed to export objects, only functions. In C:\Users\dev14\sts4-worksapce\W.only\node_modules\babel-preset-es2015\lib\index.js


npm install --save-dev @babel/preset-react

npm install --save-dev @babel/preset-env
Enter fullscreen mode Exit fullscreen mode
//webpack.config.js

presets:["@babel/preset-env", "@babel/preset-react"]
Enter fullscreen mode Exit fullscreen mode

μ°Έμ‘° : https://sisparang.tistory.com/49

Top comments (0)

We want your help! Become a Tag Moderator.
Check out this survey and help us moderate our community by becoming a tag moderator here at DEV.