Fix module resolution issue when importing action constants
BBlackwo opened this issue · comments
Benjamin B commented
During the Angular 13 upgrade the build broke when doing an import from @ngrx/store
:
import {
INIT as INIT_ACTION,
UPDATE as UPDATE_ACTION
} from '@ngrx/store';
The issue has to do with conflicting module resolution (CommonJS Modules vs ES Modules) see #208 (comment) for more info.
As a temporary workaround we have removed the import and hardcoded the action constants in d720252.
This issue is to put back the import and fix the module resolution. Some ideas:
- Configure Jasmine to support ESM
- Upgrade to the latest Jasmine
- Move to a different testing library such as Jest