
DIEGO JESUS UBARNES MARTINEZ
Preguntaerror
configuration
The ‘mode’ option has not been set, webpack will fallback to ‘production’ for this value.
Set ‘mode’ option to ‘development’ or ‘production’ to enable defaults for each environment.
You can also set it to ‘none’ to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

Omaira Cristina Palacios Sánchez
Hola yo lo solucioné agregando el modo en mi archivo webpack.config.js
// webpack.config.js const HtmlWebpackPlugin = require("html-webpack-plugin") module.exports = { mode: 'development', output: { filename: 'app.bundle.js', }, plugins: [ new HtmlWebpackPlugin({ template: 'src/index.html' }) ] }

Daniel Rodrigo Valdivieso Merino
Hola, este problema puede ser solucionado cambiando la configuración de los scripts en package.json de la siguiente manera.
"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack", "dev": "webpack serve --mode development", },