Closed vojtesaak closed 5 months ago
Same error if using vitest
with ngxs. Followed the setup here: https://dev.to/brandontroberts/faster-testing-with-angular-and-vitest-274n
So it seems to be ESM related
Still running into this error, does anyone have a fix?
node_modules/@ngxs/store/bundles/ngxs-store.umd.js:2:83
❯ Object.
I am still running into this, is this something that's known? Is there a workaround?
Great news! v18.0.0 has been released and it includes a fix for this issue. We are closing this issue, but please re-open it if the issue is not resolved. Please leave a comment in the https://github.com/ngxs/store/discussions/2173 if you come across any regressions with respect to your issue.
Affected Package
@ngxs/store
Description
Tests run without ESM. If ESM is enabled, it ends up with error at the file with the NGXS import - it fails when requiring angular.
🔬 Minimal Reproduction
https://github.com/vojtesaak/ngxs-esm
npm run test
- without errornpm run test-esm
- error