Replies: 7 comments
-
In general you will have problems with Ionic and server-side rendering because of how Ionic uses web components under the hood. https://github.com/KerryRitter/nextjs-tailwind-ionic-capacitor-starter/tree/allow-ssr Here's a repo where I tried to get SSR and Ionic working, but in NextJS. Perhaps it can give you some leads. It is a fork of a repo from Max Lynch @ Ionic. |
Beta Was this translation helpful? Give feedback.
-
I ran into this error as well and fixed it by using
Note however after getting past that error I ran into other errors with Ionic/Stencil and server-side rendering which I have yet to find a solution to |
Beta Was this translation helpful? Give feedback.
-
I have made some attempts without success. At the moment, using Ionic with Next.js or Remix, you may find various issues along the way. |
Beta Was this translation helpful? Give feedback.
-
Is this still an issue? |
Beta Was this translation helpful? Give feedback.
-
6 months into this ticket with no resolution? Has anyone got this working? |
Beta Was this translation helpful? Give feedback.
-
Looks like using the /**
* A list of patterns that determined if a module is transpiled and included
* in the server bundle. This can be useful when consuming ESM only packages
* in a CJS build.
*/
serverDependenciesToBundle?: "all" | Array<string | RegExp>; |
Beta Was this translation helpful? Give feedback.
-
Any news about that? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Remix are you using?
1.9.0
Steps to Reproduce
I created a new Remix app => installed capacitor.js (and running all the process for Ios & android) => installed ionic framework => use some Ionic elements (in root app) such as:
Expected Behavior
Transpile with success in Remix app
Actual Behavior
I have an issue with "export"(I assume that related to transpile).
I installed ionic framework for my Remix app, but I got the following exception: "Unexpected token 'export'"
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
Beta Was this translation helpful? Give feedback.
All reactions