Closed DenisNikonov closed 3 years ago
It seems you may be mixing SystemJS with native modules, which can result in confusing behaviors. See https://single-spa.js.org/docs/ecosystem-vite#native-modules-vs-systemjs for more info. Generally it's best just to choose one or the other rather than having both, since the browser doesn't have sufficient registry apis for systemjs to properly load native modules and their dependencies.
Hello! I will try use u example for single-spa, but i get error: Cannot use import statement outside a module in my main.ts.
src/vite-app/src/main.ts
src/vite-app/vite.config.ts
src/index.ejs
UPDATE: I checked my service at http://single-spa-playground.org/playground. All checks have been passed. Most likely the problem is either with the Layout Engine or with the single-spa
RESOLVED Need add
systemjs-babel.js
.Example: