Skip to content

Can't resolve 'file-loader' #727

@VincentLanglet

Description

@VincentLanglet

When I run

yarn install --production
NODE_ENV=production ./node_modules/.bin/encore production

I get

Syntax Error: ModuleNotFoundError: Module not found: Error: Can't resolve 'file-loader' in '/var/www/vagrant.assurancevie.com/current'

But the module file-loader is installed. It's not in node_modules but in node_modules/@symfony/webpack-encore/node_modules because I have another library requiring another version of file-loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions