Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Usage of node:path is incompatible with declared enginesΒ #55

@kachkaev

Description

@kachkaev

πŸ‘‹ @sindresorhus!

I was fiddling with prettier-vscode and noticed an issue with find-up’s import from node:path. When running yarn test, the extension was crashing by saying that it could not resolve node:path.

According to v6.0.0 CHANGELOG and package.json β†’ engines, find-up is expected to work on any Node version that supports ESM. However, looks like node:path import has a stricter constraint, more specifically Node 14.18 and Node 16+.

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