-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Cannot find module '@ionic/angular-server' or its corresponding type declarations #24605
Comments
Just ran into this same problem |
Same problem here @angular 13.0.3, @ionic/[email protected], @ionic/[email protected] |
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
To reproduce, just follow the guide : https://ionicframework.com/blog/ssr-with-angular-universal-and-ionic @Ionitron |
same issue here: |
Problem still persist after update to 6.0.4 |
In the meantime you can use the code from Ionic Server Module (https://github.com/ionic-team/ionic-framework/blob/main/packages/angular-server/src/ionic-server-module.ts) directly at your own code. Although it's not working with version 6.0.x of ionic/core anyway. It works with version 5.9.3. With version 6.0.x you get a hydrateDocument error:
Which is a different bug. It is not appropriate to discuss it in this thread. |
Thanks! I can reproduce this. Here is a dev build with a fix if anyone is interested in testing:
As for the Action sheet error, that was fixed via #24681. |
I found an additional bug, but I have fixed it. I placed a new dev build in the comment above for testing. Thanks! |
Thanks for the issue. This has been resolved via #24701, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue testing the dev build above. |
Hi, I tried DEV version on fresh install and got 2 issues, I will do deep test soon: Issues:
:host-context([dir=rtl]) .ion-float-start -> subselects_1.subselects[name] is not a function |
Hi,
But I can see the page correctly on browser. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
Error: src/app/app.server.module.ts:6:35 - error TS2307: Cannot find module '@ionic/angular-server' or its corresponding type declarations.
6 import { IonicServerModule } from '@ionic/angular-server';
~~~~~~~~~~~~~~~~~~~~~~~
Error: src/app/app.server.module.ts:9:12 - error NG1010: Value at position 2 in the NgModule.imports of AppServerModule is not a reference Value could not be determined statically.
Expected Behavior
Angular SSR
Steps to Reproduce
npm run dev:ssr
Code Reproduction URL
No response
Ionic Info
No response
Additional Information
Angular 13
The text was updated successfully, but these errors were encountered: