Skip to content

Revert "fix(ssr): fixes for scoped: true components during SSR (#6311)" #6336

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

Closed
wants to merge 2 commits into from

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Jul 10, 2025

What is the current behavior?

We are having issues updating Ionic framework due to a change introduced in #6311. The issue we see is in the Angular e2e test where the application just doesn't load:

Screenshot 2025-07-09 at 6 14 47 PM

ionic-team/ionic-framework#30524

cc @johnjenkins

What is the new behavior?

I am reverting the change and make a new release.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

n/a

Other information

n/a

@christian-bromann christian-bromann requested a review from a team as a code owner July 10, 2025 01:57
@johnjenkins
Copy link
Contributor

@christian-bromann i’m pretty sure the PR you’re looking for is this one #6298

Copy link
Contributor

@johnjenkins johnjenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the wrong PR for the flagged errors :)

@christian-bromann
Copy link
Member Author

I have pushed a dev build @stencil/[email protected] to NPM to verify this on the Ionic side.

The last Nightly build failing: https://github.com/ionic-team/ionic-framework/actions/runs/16187432460
A Nightly build triggered by me using the dev build: https://github.com/ionic-team/ionic-framework/actions/runs/16199616480

@christian-bromann
Copy link
Member Author

I created a reproduction case for you using the testbed from Ionic: https://drive.google.com/file/d/1wR9YqsPo93-iy8v67DFeTyykwcStJW53/view?usp=drive_link .. you can just download it and run it. Confusingly, if I run npm start and access the apps, everything works but when I run npm test , nothing loads. Maybe this is a Cypress qwirk?

Please let me know your thoughts and how we want to proceed here?

@johnjenkins
Copy link
Contributor

johnjenkins commented Jul 11, 2025

@christian-bromann this is what I get locally -
image
the form / input related error occurs due to the one-time-password input just not being there for me ... I swapped to an IonInput just to get things building ... obvs those tests failed, but at least they ran. What am I missing here?

@johnjenkins
Copy link
Contributor

following up - yeah, I don't appear to have ion-input-otp in my ionic core lib
image
idk if it's just a me thing

@christian-bromann
Copy link
Member Author

christian-bromann commented Jul 14, 2025

@johnjenkins sorry, I don't know what happened to the reproduction case, I double checked and created a new zip file: https://drive.google.com/file/d/1r48gi1hqRABbJxWtPzPekmxpQcaLFAv2/view?usp=sharing

@christian-bromann
Copy link
Member Author

christian-bromann commented Jul 14, 2025

Sorry, that one was also not correct, here is the final reproduction case: https://drive.google.com/file/d/1WC5bn27Ih5GGGJitrNzlxFbKW5qtuOE9/view?usp=sharing

Hold on, still working on a reproduction case

@christian-bromann
Copy link
Member Author

Unfortunately I couldn't zip the reproduction case so here is the manual way:

> git clone [email protected]:ionic-team/ionic-framework.git
> cd ionic-framework

Update Stencil to latest:

-     "@stencil/core": "4.33.1",
+     "@stencil/core": "4.35.3",

in core/package.json, then run:

> npm i
> cd core && npm i && npm run build
> cd ../packages/angular && npm i && npm run sync && npm run build
> cd ../angular-server && npm i && npm run build
> cd ../angular/test
> ./build.sh ng19
> cd build/ng19/
> npm install && npm run sync

Now running the tests you will see that the tests using lazy components are failing:

npm test


Let's validate with the dev build:

> cd ../../../../../core && npm i && npm run build
> cd ../packages/angular && npm i && npm run sync && npm run build
> cd ../angular-server && npm i && npm run build
> cd ../angular/test
> ./build.sh ng19
> cd build/ng19/
> npm install && npm run sync

This should now pass:

npm test

@christian-bromann
Copy link
Member Author

Closing in favor of #6343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants