InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

Issue: CJS Container type not assignable to ESM Container argument

Open pnkp opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current behavior

The npm package uses a [email protected] as peer dependency. The problem occurs when I'm trying to pass container as a parameter to this package.

The environment:

  • type: module (ECMA Modules),
  • ts: 5.7 - module: "nodenext", moduleResolution: "nodenext",
  • node: 22.x,

Image

Steps to reproduce

No response

Expected behavior

I will not have a type error. I will be able to pass a container as a parameter

Possible solution

No response

Package version

7.0.1

Node.js version

22.11.0

In which operating systems have you tested?

  • [x] macOS
  • [ ] Windows
  • [ ] Linux

Stack trace

No response

Other

No response

pnkp avatar Mar 11 '25 09:03 pnkp