create-single-spa
create-single-spa copied to clipboard
Unable to create Angular and Vue parcel apps using create-single-spa
Using version 5.0.7, it appears to not be possible to create Angular and Vue apps.
I am honestly not sure what the reason behind this could be. Whether the CLI tool clashes with something else I have installed or not, I am not sure. There's no error shown or anything, it just exits after I type in my organization name.
Creating svelte and react apps is possible, however (though, the react one ends up with a bunch of errors which I believe I saw were reported as an issue already).
arman@DESKTOP-SR94ETS MINGW64 /d/Development
$ create-single-spa
? Directory for new project vue
? Select type to generate single-spa application / parcel
? Which framework do you want to use? vue
? Organization name (can use letters, numbers, dash or underscore) org
arman@DESKTOP-SR94ETS MINGW64 /d/Development
$
In case it matters for whatever reason and if it wasn't obvious, I am running it on Windows 10.
After updating the package on my machine and retrying the Angular process, this is what I get:
As for Vue:
So the CLI tool fails while trying to execute ng.cmd new angular-test and npx.cmd @vue/cli create vue-test --skipGetStarted, but running both commands manually seems to work just fine. I honestly have no idea why this is failing when doing it via the create-single-spa command (perhaps it could be due to the command interactivity?).
I'm working on single-spa-angular to support Angular 19, zoneless standalone components, and outputting native modules. Until that is working, I have no plans to fix create-single-spa's angular generator.
The vue generator works for me locally, and based on the error my guess is that it is platform-specific to Windows.
is this the fix you're after? https://github.com/single-spa/create-single-spa/issues/403#issuecomment-2662799618
is this the fix you're after? #403 (comment)
This seems to have done the trick. Cheers.
Any reason why you haven't suggested this change via a Pull request?