You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with test.js in cwd, try to run: node -r .\test.js
Error:
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '.\test.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at Module._preloadModules (internal/modules/cjs/loader.js:805:12)
at preloadModules (internal/bootstrap/node.js:575:7)
at startup (internal/bootstrap/node.js:268:9)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
The text was updated successfully, but these errors were encountered:
Before this change, require('.\\test.js') failed while
require('./test.js') succeeded. This changes _resolveLookupPaths so
that both ways are accepted on Windows.
Fixes: nodejs#21918
with
test.js
in cwd, try to run:node -r .\test.js
Error:
The text was updated successfully, but these errors were encountered: