-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with using angular-archwizard in lazy loaded libraries #341
Comments
In case someone faces same challenge one of my parent component with had |
I got the same problem, and the work-around of removing I encountered the problem by updating from 'angular-archwizard' from ^5.0.0 to ^7.0.0, and later found out that already 6.0.0 broke it. When looking at the release notes of 6.0.0, this sentence sounds suspicious:
So this issue should be reopened IMHO. @madoar What do you think? |
If I remember correctly this sentence targets PR #264. The change was necessary because of a test that started to fail after updating
Sure :)
I have not used lazy loaded of libraries with angular before. Therefore it is hard for me to recreate the issue without an example. For this reason it would be great if you could provide a fully runnable minimal example showcasing the issue. |
'ArchwizardModule' does not appear to be an NgModule class.(-996002) Any suggestions? |
I imported below in my app.module.ts and configured it with the forRoot():
Then i created a lazy loaded module using nx and imported the ArchwizardModule in my lazy loaded library like below:
I then created a component in my lazy loaded library using the demo snippet:
and i produces the attached output:
But if i use the demo snippet in the app.component.ts it works as expected.
My environment details:
Angular CLI: 10.2.3
Node: 16.0.0
OS: darwin x64
Angular:
...
Ivy Workspace:
Package Version
@angular-devkit/architect 0.1002.3 (cli-only)
@angular-devkit/core 10.2.3 (cli-only)
@angular-devkit/schematics 10.2.3 (cli-only)
@schematics/angular 10.2.3 (cli-only)
@schematics/update 0.1002.3 (cli-only)
The text was updated successfully, but these errors were encountered: