Closed colorcube closed 12 months ago
Can you elaborate what you do to get broken build? As you see tests in repository pass fine. Also about jest - it seemingly expects cjs, but this module is esm, I'd suggest researching a bit how to use as esm, likely you just need to add type='module' to package.json
Unfortunately, Nx is a bit complex and trying to use esm didn't work for me. Additionally, I have very limited knowledge of the whole modules topic.
Nevertheless, thanks for your suggestions. My workaround is to include the subscript code in my own package which is an ugly solution ... but it works for now.
I hope you resolved the issue. Please reopen if didn't.
I have a Nx repository.
The import in TypeScript/Node code works, but the build is broken.
The import in Jest Scripts didn't work at all, no matter what I tried: