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
Resolving local modules with relative paths has broken in Node v12.3.0 probably due to nodejs/node#27598
$ ls src/baapan.js src/baapan.js $ /Users/deepal/.nvm/versions/node/v12.3.0/bin/node --require @babel/register src/entrypoint.js Switching to workspace /Users/deepal/.baapan/workspace_47039_1584287356022 Workspace loaded! > require('./src/baapan.js') Thrown: Error: Cannot find module './src/baapan.js' Require stack: - /Users/deepal/Projects/baapan/src/baapan.js - /Users/deepal/Projects/baapan/src/index.js - /Users/deepal/Projects/baapan/src/entrypoint.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15) at Function.resolve (internal/modules/cjs/helpers.js:21:19) at Module._module.Module.require (/Users/deepal/Projects/baapan/src/baapan.js:130:19) at require (internal/modules/cjs/helpers.js:16:16) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/deepal/Projects/baapan/src/baapan.js', '/Users/deepal/Projects/baapan/src/index.js', '/Users/deepal/Projects/baapan/src/entrypoint.js' ] } >
Requiring with absolute path works fine
> require('/Users/deepal/Projects/baapan/src/baapan.js') { default: [Function: BaapanREPLServer] } >
Change log for Node v12.3.0 https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#2019-05-21-version-1230-current-bridgear
The text was updated successfully, but these errors were encountered:
Fix issue #30 in resolving local modules with relative paths and work…
5893631
…around for #28
ee13145
764b4ea
…around for #28 (#31)
Successfully merging a pull request may close this issue.
Resolving local modules with relative paths has broken in Node v12.3.0 probably due to nodejs/node#27598
Requiring with absolute path works fine
Change log for Node v12.3.0 https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#2019-05-21-version-1230-current-bridgear
The text was updated successfully, but these errors were encountered: