-
Notifications
You must be signed in to change notification settings - Fork 34
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
IncludeStylesModule expects RouterModule to be imported. #87
Comments
Hi @cdchow! Yes, the Your solution to not import Is the request to document the It might not be a bad idea to think of ways to configure |
Thanks @asyncLiz. Yes, exactly that, to document the dependency more clearly. 🙏 |
I've added more documentation, as well as an alternative |
Hi,
As noted in the issue title, the IncludeStylesModule, which is bundled in the OrigamiModule, expects the RouterModule to be imported at some point. Simply adding it to my
app.module.ts
like thisRouterModule.forRoot([])
would address the issue.See a truncated error log below:
For additional context, I'm working on a hybrid AngularJS/Angular application that uses
@uirouter/angular-hybrid
. Using RouterModule in any way (even importing it in an @NgModule) makes the app complain and error (a different error, related to RouterModule). In the meantime, I've broken down our OrigamiModule import and instead imported its constituent modules, but excluding the IncludeStylesModule.Agnostic of my issue, it seems like any Angular app that uses UIRouterModule instead of the default RouterModule would encounter this same error with IncludeStylesModule. I do not have a direct ask but wanted to surface the hard dependency on RouterModule.
Thanks.
The text was updated successfully, but these errors were encountered: