Luis Alejandro Vera Hernandez
PreguntaAlguien conoce como solucionar este error?
ERROR in ./src/styles/main.css 2:0 Module parse failed: Unexpected character '@' (2:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | > @font-face { | font-family: 'Ubuntu'; | src: url('../assets/fonts/ubuntu-regular.woff2') format('woff2'), @ ./src/index.js 4:0-27 webpack 5.38.1 compiled with 1 error in 5038 ms
Kenneth Angulo L
El error indica una posible solucion:
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
En alguna clase anterior instalamos estos loaders:
npm install url-loader file-loader -D
y revizar que el webpackconfig contenga esta regla en la seccion de modulos:
{ test: /\.(woff|woff2|eot|ttf|otf)$/i, type: "asset/resource", },