Skip to content

ENOENT no such file or directory #5

@shellscape

Description

@shellscape

While attempting to bundle the sale-client package, and setting the regex to match all .js files, the plugin throws the following error:

/.../sale-client/src/plugins/FileManageService.js:3:27: ERROR: [plugin: flow] ENOENT: no such file or directory, open '/.../node_modules/sale-client/src/plugins/GetTimeService.js'

The culprit is that src/plugins/FileManageService.js in this package has an import to ./getTimeService.js so there's a casing mismatch and indeed, the file doesn't exist. However, esbuild handles this gracefully with no plugins.

This is a situation in which I think there should be a warning emitted, but no error, passing the build back to esbuild to do its thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions