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

Import error in angular/webpack #61

Open
jamie-pate opened this issue Feb 12, 2022 · 2 comments · May be fixed by #62
Open

Import error in angular/webpack #61

jamie-pate opened this issue Feb 12, 2022 · 2 comments · May be fixed by #62

Comments

@jamie-pate
Copy link

jamie-pate commented Feb 12, 2022

Error: node_modules/rxjs-spy/cjs/plugin/snapshot-plugin.d.ts:1:10 - error TS2305: Module '"error-stack-parser"' has no exported member 'StackFrame'.

1 import { StackFrame } from "error-stack-parser";
~~~~~~~~~~

Error: node_modules/rxjs-spy/cjs/plugin/stack-trace-plugin.d.ts:1:10 - error TS2305: Module '"error-stack-parser"' has no exported member 'StackFrame'.

1 import { StackFrame } from "error-stack-parser";
~~~~~~~~~~

@jamie-pate jamie-pate changed the title Add exports field to support esm in nodejs Update exports field to support esm in webpack? Feb 12, 2022
@jamie-pate jamie-pate changed the title Update exports field to support esm in webpack? Import error in angular/webpack Feb 12, 2022
jamie-pate referenced this issue in stacktracejs/error-stack-parser Feb 12, 2022
The slight incompatibility of the old definition was necessitating
unsafe casts between ErrorStackParser.StackFrame and StackFrame.

Signed-off-by: Anders Kaseorg <[email protected]>
youwol-jdecharne added a commit to youwol/flux-view that referenced this issue Feb 18, 2022
@Cuberice
Copy link

Same issue here after yarn upgrade with Angular 13

@dsbert
Copy link

dsbert commented Mar 16, 2022

Until this is fixed, you can use overrides as a work around (requires npm 8+). https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

  "overrides": {
    "rxjs-spy": {
      "error-stack-parser": "2.0.6"
    }
  }

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

Successfully merging a pull request may close this issue.

3 participants