Skip to content

Bad error when requiring a file with an unsupported loader #56

@weaverryan

Description

@weaverryan

To reproduce, in any JavaScript file:

require('./foo.json');

As there is no loader configured for .json files, you'll get an error:

This relative module was not found:

  • ./foo.json in ./app/Resources/assets/js/app.js

This makes it appear that the file wasn't found. The bug is actually inside of friendly-errors-webpack-plugin: geowarin/friendly-errors-webpack-plugin#32

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions