-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't resolve 'file-loader' #727
Comments
Hey @VincentLanglet! Can you post your Cheers! |
This should be enough.
I don't get the error in dev since So webpack-encore is using the |
You shouldn't add that one to your project manually. That being said you should have one version of I see you have Also, which version of Yarn are you using? |
I agree. If I don't add this line, I get the error
I need to require it manually in order to have one at the root of my When I don't require it manually, I don't have one at the root. I think it's more a Indeed, when I do
And It's more a general issue: When
It's not related. I tried without this package.
1.22.4 |
The issue is that Encore currently builds a Webpack config that looks like this: {
module: {
rules: [
{
test: /\.(png|jpg|jpeg|gif|ico|svg|webp)$/,
loader: 'file-loader'
}
]
}
} This config is then used by Webpack that does the resolving of I tried to fix that by moving the resolving part in Encore, would you be able to test if that works for you?
|
Yes it works ! |
When I run
I get
But the module
file-loader
is installed. It's not innode_modules
but innode_modules/@symfony/webpack-encore/node_modules
because I have another library requiring another version offile-loader
.The text was updated successfully, but these errors were encountered: