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

Support use of UI5WC within Node.js #6192

Closed
1 of 4 tasks
scameron opened this issue Dec 15, 2022 · 2 comments
Closed
1 of 4 tasks

Support use of UI5WC within Node.js #6192

scameron opened this issue Dec 15, 2022 · 2 comments

Comments

@scameron
Copy link
Contributor

scameron commented Dec 15, 2022

Feature Request Description

Today UI5WC cannot be run inside Node.js because it relies on browser-specific objects like window and browser-specific APIs like fetch. For purposes of testing (via Jest, for example) or potentially server-side rendering, it would be nice to be able to use UI5WC inside Node.js instead of a browser.

Proposed Solution

I'm not exactly sure what an exact solution would look like, but presumably it would need to internally use alternatives for browser-specific objects and APIs where possible, if such objects/APIs are found to not be available at runtime.

Priority

  • Low
  • Medium
  • High
  • Very High
@plamenivanov91
Copy link
Contributor

Hello @SAP/ui5-webcomponents-team,

The reporter would like to use UI5 Web Components outside of the browser (Node.js).

Is that feasible? Can you please take over?

Regards,
Plamen Ivanov

@ilhan007
Copy link
Member

ilhan007 commented Jul 10, 2024

Hello @scameron

With this change the web components use shim for node/ssr environment and available since version 1.22. The web components will no longer fail if imported within Node. However it's only the first step, there are plans to work on complete SSR solution, described in this GitHub issue. We will post update in the issue for timelines and decisions made.

Screenshot 2024-07-10 at 17 17 59

@ilhan007 ilhan007 self-assigned this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

No branches or pull requests

3 participants