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

Gives error when creating an angular project #370

Open
Deval99 opened this issue Jan 12, 2023 · 0 comments
Open

Gives error when creating an angular project #370

Deval99 opened this issue Jan 12, 2023 · 0 comments

Comments

@Deval99
Copy link

Deval99 commented Jan 12, 2023

Error

Error: node_modules/single-spa-angular/src/public_api.d.ts:2:34 - error TS2307: Cannot find module './single-spa-angular' or its corresponding type declarations.

Error: src/main.single-spa.ts:18:22 - error TS7006: Parameter 'singleSpaProps' implicitly has an 'any' type.
18 bootstrapFunction: singleSpaProps => {

2 export { singleSpaAngular } from './single-spa-angular';

Temporary solution

edit APP_PATH/node_modules/single-spa-angular/src/public_api.d.ts

replace
export { singleSpaAngular } from './single-spa-angular';
with
export { singleSpaAngular } from './index';

Steps to reproduce the error

$ create-single-spa
Directory .
Select: single-spa application / parcel
Select: angular
Assign name
Add angular routing
Select SCSS
Allow installing single-spa-angular@8.0.0
Add angular routing
Select default port
$ //Go to application folder
$ npm start

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