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

Latest comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.