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

Cannot find module "single-spa-layout/server" #1135

Open
pjconcepcion opened this issue Aug 8, 2023 · 3 comments
Open

Cannot find module "single-spa-layout/server" #1135

pjconcepcion opened this issue Aug 8, 2023 · 3 comments
Assignees

Comments

@pjconcepcion
Copy link

pjconcepcion commented Aug 8, 2023

Describe the bug or question
"single-spa-layout/server" can't be found when importing for SSR in root config.

To Reproduce

  1. Create new root-config with npx create-single-spa --moduleType root-config
  2. Add import { constructServerLayout } from 'single-spa-layout/server';

Expected behavior
Module single-spa-layout/server can be found

Screenshots and/or console output
image
image

Additional context
Are there any configuration should be done aside from importing?

@tech3br
Copy link

tech3br commented Aug 9, 2023

Hello, @pjconcepcion! How are you?

Were you able to run the project with SSR? Were you able to run any MFe with it?

Thanks

@pjconcepcion
Copy link
Author

Unfortunately no. The errors keeps on popping in my browser.

@MilanKovacic
Copy link
Collaborator

This is an issue with exports/types configuration: https://arethetypeswrong.github.io/?p=single-spa-layout%402.2.0
Will check it out.

@MilanKovacic MilanKovacic self-assigned this Oct 5, 2023
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

3 participants