-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
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
Usage of node:path is incompatible with declared engines #55
Comments
It is supported on Node.js 12 since 12.20: Lines 15 to 17 in ace3d10
|
I must have been confused by the difference between Prettier for VSCode is built by |
👋 @sindresorhus!
I was fiddling with prettier-vscode and noticed an issue with
find-up
’s import fromnode:path
. When runningyarn test
, the extension was crashing by saying that it could not resolvenode: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 likenode:path
import has a stricter constraint, more specifically Node 14.18 and Node 16+.The text was updated successfully, but these errors were encountered: