I am trying to import a css (modules) that is in node_modules, and I fall into the following error:
These dependencies were not found
* fonts / font.eot * fonts / font.svg > * fonts / font.woff
* fonts / font.woff2
(Package is installed)
I'm importing this way:
import { alert } from 'myfont/myfont.css';
And I have the following loader configured:
{
test: /\.(eot|svg|ttf|woff2?|otf|jpe?g|png|gif|ico)$/,
use: [
{
loader: 'url-loader',
options: {
name: dev ? '[path][name].[ext]' : '',
publicPath: path.resolve('src/_next/static/'),
outputPath: './src/static'
}
}
]
}
Does anyone have any idea how I can fix this? Thanks!