Skip to content
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

ERR_UNSUPPORTED_DIR_IMPORT when importing rxjs/operators #6187

Closed
blanchma opened this issue Mar 28, 2021 · 1 comment
Closed

ERR_UNSUPPORTED_DIR_IMPORT when importing rxjs/operators #6187

blanchma opened this issue Mar 28, 2021 · 1 comment

Comments

@blanchma
Copy link

Bug Report

Current Behavior

internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/Users/blanchma/learning/rxjs-local/node_modules/rxjs/operators' is not supported resolving ES modules imported from /Users/blanchma/learning/rxjs-local/test.js
Did you mean to import rxjs-local/node_modules/rxjs/operators/index.js?
    at finalizeResolution (internal/modules/esm/resolve.js:272:17)
    at moduleResolve (internal/modules/esm/resolve.js:699:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:56:40)
    at link (internal/modules/esm/module_job.js:55:36) {
  code: 'ERR_UNSUPPORTED_DIR_IMPORT',
  url: 'file:///Users/blanchma/learning/rxjs-local/node_modules/rxjs/operators'
}

Expected behavior

Import and run

Reproduction

git@github.com:blanchma/rxjs-import-fail.git
cd rxjs-import-fail
npm install
node test.js
node test.js

Environment

  • Runtime: v14.15.3
  • RxJS version: "6.6.6"
@kwonoj
Copy link
Member

kwonoj commented Mar 28, 2021

@kwonoj kwonoj closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants