single-spa-playground | A website that helps you set up single-spa | Single Page Application library
kandi X-RAY | single-spa-playground Summary
kandi X-RAY | single-spa-playground Summary
A website that helps you set up single-spa
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Submit app .
- Run test importer
- Returns the step in the step index .
- Copy a string of text into another .
- Update an app
- Remove a button from the application
- Save an app .
- Start running tests .
- Focus or create a button text
- Adds an app .
single-spa-playground Key Features
single-spa-playground Examples and Code Snippets
Community Discussions
Trending Discussions on single-spa-playground
QUESTION
After converting a react app to single spa which had il8n implemented I am facing a problem where translation.json cannot be accessed hence not fetching the labels.
Should I modify something in the webpack.config.js to get it right
...ANSWER
Answered 2021-May-24 at 14:03The issue is that previously, the React app also served as the server that provided the index.html file along with other static assets (eg. your localized translation json files). In single-spa, that is no longer the case; that is instead now the root-config. You'll need to update your i18next-http-backend loadPath
configuration so that the library tries to retrieve them from the right path which is no longer the root url. Without being familiar with what you want to achieve, you have two options:
- use
__webpack_public_path__
to dynamically create the correct URL to point to the assets served by this microfrontend, eg.loadPath: `${__webpack_public_path__} /locales/{{lng}}/{{ns}}.json`,
- if you have a separate i18n service, point the URL to that. This may also require
crossDomain
andwithCredentials
depending on how that is also configured.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install single-spa-playground
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page