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
Environment name and version (e.g. Chrome 39, node.js 5.4):
node -v
v18.12.1
Operating System and version (desktop or mobile): Mac 13.3.1 (a) (22E772610a)
Stack trace
● Test suite failed to run
TypeError: getDecorators is not a function
4 |
5 | export const container = new Container();
> 6 | export const { lazyInject } = getDecorators(container);
| ^
7 |
at src/iocContainer/container.ts:6:31
The text was updated successfully, but these errors were encountered:
Expected Behavior
Work in esm env
Current Behavior
This means
have to change to
Possible Solution
maybe its
jsnext:main
is not pickup by jest.Change package.json of this package to
"main": "es/index.js",
can solve thisand change them to mjs
Steps to Reproduce (for bugs)
I set up ts jest using
jest.config.ts
Context
Maybe it is time to provide a esm version of that package, without feature change.
Your Environment
Stack trace
The text was updated successfully, but these errors were encountered: