Skip to content
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

fix(runtime): ensure Node is defined #6061

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Nov 26, 2024

What is the current behavior?

Stencils runtime tries to access Node which may not be defined when server side rendering components.

What is the new behavior?

Have a check for Node before accessing it.

fixes ionic-team/stencil-ds-output-targets#537

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

We will have to put some tests in place to ensure we can build the Output targets project. This should be a separate effort.

Other information

n/a

@christian-bromann christian-bromann added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit 1f5a13f Dec 6, 2024
88 checks passed
@christian-bromann christian-bromann deleted the cb/access-node branch December 6, 2024 16:19
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.

bug: building Next.js + SSR components - 'ReferenceError: Node is not defined'
3 participants