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

Not able to mount standalone react application using npm #67

Open
Shoaib20-1998 opened this issue Nov 21, 2024 · 0 comments
Open

Not able to mount standalone react application using npm #67

Shoaib20-1998 opened this issue Nov 21, 2024 · 0 comments

Comments

@Shoaib20-1998
Copy link

I a have created react spa standalone but when i m trying to mount it on single spa playground to check whether is working or not but its throwing this error :-

Uncaught Error: application '@project/dashboard' died in status LOADING_SOURCE_CODE: Error loading https://localhost:8500/project-dashboard.js (SystemJS Error#3 https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3)
at HTMLScriptElement. (system.js:662:18)Understand this errorAI

this is the url i m hitting:-
http://single-spa-playground.org/playground/instant-test?name=@project/dashboard&url=8500

webpack.js:-

module.exports = (webpackConfigEnv, argv) => {
  const defaultConfig = singleSpaDefaults({
    orgName: "project",
    projectName: "dashboard",
    webpackConfigEnv,
    argv,
  });

  return merge(defaultConfig, {
    // modify the webpack config however you'd like to by adding to this object
  });
};

port :- "start": "webpack serve --port 8500",

anyone please help if you have solution to this

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

No branches or pull requests

1 participant