Closed Deval99 closed 1 year ago
This seems more related to single-spa-angular as create-single-spa does not generate this environment file.
Environments files are not generated anymore in newer Angular workspaces; this change was made in Angular CLI. single-spa-angular
requires environment file to be present. We're not and shouldn't be responsible for creating them since this is complex (check if exists, create if doesn't, etc.).
Error
./src/main.single-spa.ts:6:0-57 - Error: Module not found: Error: Can't resolve './environments/environment' in 'WORK_DIR/src'
Error: src/main.single-spa.ts:12:29 - error TS2307: Cannot find module './environments/environment' or its corresponding type declarations.
12 import { environment } from './environments/environment';