We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Flow doesn't support node: imports such as:
node:
import fs from 'node:fs';
Currently, the following error is thrown:
Cannot resolve module node:fs. [cannot-resolve-module]
The only supported syntax is the original version without node: prefix:
import fs from 'fs';
This affects all Node.js imports, not just fs.
fs
See: https://nodejs.org/api/esm.html#node-imports
The text was updated successfully, but these errors were encountered:
Hi, as a temporary (or not so temporary) solution you could install flow-typed node environment. https://flow-typed.github.io/flow-typed/#/env-definitions
node
Sorry, something went wrong.
No branches or pull requests
Missing/Incorrect APIs
Flow doesn't support
node:
imports such as:Currently, the following error is thrown:
The only supported syntax is the original version without
node:
prefix:This affects all Node.js imports, not just
fs
.Relevant documentation
See: https://nodejs.org/api/esm.html#node-imports
The text was updated successfully, but these errors were encountered: