Skip to content

Error: Cannot find module 'node:fs/promises' #969

@mendoncanorma

Description

@mendoncanorma

BEFORE YOU SUBMIT please read the following:

Delete what isn't applicable below
I'm submitting a bug report

Webpack Version:
5.74.0

Babel Core Version:
7.19.6

Babel Loader Version:
9.0.0

Please tell us about your environment:
Windows 11

Current behavior:
Receiving the following error with babel-loader 9.0.0

ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'node:fs/promises

No issues observed with babel-loader 8.2.5

Expected/desired behavior:

There should not be any build error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions