DEV Community


Discussion on: Building a static site with Hugo and Webpack

gusbemacbe profile image
Gustavo Costa

Hello @tegandbiscuits

There's an error in the file .babelrc:

Entrypoint main = bundle.js
[0] multi ./src/javascript/app.js ./src/styles/app.css 40 bytes {0} [built]
[1] ./src/javascript/app.js 4.2 KiB {0} [built] [failed] [1 error]

ERROR in ./src/javascript/app.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: .presets[1][1] must be an object, false, or undefined
Enter fullscreen mode Exit fullscreen mode