-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
npx create-single-spa fails when creating a angular application/parcel #403
Comments
I have the same problem here and I can only create React projects. Vue and Angular I can't. |
Getting this issue with Node 22.5.0 and Angular 19. I've noticed Angular and Vue generators extend yeoman-generator directly, whereas Svelte and React extend PnpmGenerator which then extends yeoman. Perhaps it's not the issue, but it is a notable difference. I will try with old node versions and see if there is some pattern |
same issue. can't create angular app |
Ok, I've figured it out. So an update to spawnSync has blocked xxx.cmd commands, where create single spa angular user ng.cmd to launch the process to execute ng/ngx. The fix to this line: create-single-spa/packages/generator-single-spa/src/angular/generator-single-spa-angular.js Line 60 in 93b531d
would be: { stdio: "inherit", cwd, shell: true } Same for the other spawnSync at line 68 Whilst you all await a permenant fix, you can patch it locally: Open up C:\Users[YOUR USERNAME]\AppData\Roaming\nvm[YOUR NODE VERSION]\node_modules\create-single-spa\node_modules\generator-single-spa\src\angular\generator-single-spa-angular.js and change line 60 from Save and rerun npx create-single-spa |
to reproduce:
npx create-single-spa
? Directory for new project .
? Select type to generate single-spa application / parcel
? Which framework do you want to use? angular
? Project name (can use letters, numbers, dash or underscore) test
After this it does nothing
Angular CLI: 17.3.5
Node: 20.12.2
Package Manager: npm 10.5.2
OS: win32 x64
Angular:
...
Package Version
@angular-devkit/architect 0.1703.5 (cli-only)
@angular-devkit/core 17.3.5 (cli-only)
@angular-devkit/schematics 17.3.5 (cli-only)
@schematics/angular 17.3.5 (cli-only)
The text was updated successfully, but these errors were encountered: