Skip to content

Import module error in spa.tsx when running react microfrontend #190

@Jordan-Eckowitz

Description

@Jordan-Eckowitz

Describe the bug

I created a root config and application using the single-spa CLI tool and all works fine. I followed the guidelines in their docs (https://single-spa.js.org/docs/ecosystem-vite#micro-frontend-projects), as well as your readme, for adding an application for vite react ts.

I'm getting the error below inside the spa.tsx file (it's the exact code in your readme). When I try and access the standalone vite app directly it works fine. So, I think I can say for sure, that the issue is on the single-spa side. Any idea what could be causing the problem?

Microsoft Edge 2024-08-20 22 44 13

Project type: [ ] Root Config [x] Micro-frontend/parcel
Project Framework: [x] React [ ] Svelte [ ] Vue [ ] Preact [ ] Other:

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions