-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: react, tabs accesses values that are not defined in ssr environment #23651
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
Comments
Current work around: next/dynamic with no ssr https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
It did solve the issue in the reproduction repo. |
Since after this issue, I've been using Ionic and found an unpredictable behaviour - I commented it out here #22718 (comment) could you triage if I should create a new issue for that case? Thank you. |
Thanks for the issue. This has been resolved via #23696, and a fix will be available in an upcoming release of Ionic Framework. For #22718 (comment), let's keep discussion in that thread since it seems to be related to the original post. |
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. |
Prequisites
Ionic Framework Version
Current Behavior
Expected Behavior
Smooth integration out of the box with SSR support
Documentation should mention SSR on every framework guide page, even though it's still work in progress
Steps to Reproduce
As mentioned at https://nextjs.org/docs/getting-started
1 - start nextjs project - Run:
As mentioned at https://ionicframework.com/docs/intro/cdn#ionic-react
2 - install ionic deps - Run:
Open pages/_app.tsx and add styles as mentioned at https://ionicframework.com/docs/intro/cdn#css
3 - use a component
Open pages/index.tsx and import
And use it inside the jsx return
4 - try to start development - run
5 - open the browser preview
Code Reproduction URL
https://github.com/felquis/ionic-react-issue-report
Ionic Info
[WARN] You are not in an Ionic project directory. Project context may be
missing.
Ionic:
Ionic CLI : 6.16.3
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v16.3.0
npm : 7.15.1
OS : macOS Catalina
Additional Information
This project is not with cordova, nor ionic itself, I just want to use a few components from ionic in the react way in an already existing project made with nextjs for instance.
Issues I've found that does not mention the error I report here specifically.
mentions nextjs
does not mention nextjs even though the problem is relared to ssr
Offer Solution but not using the module @ionic/react
Does not use @ionic/react at all
The text was updated successfully, but these errors were encountered: