create-single-spa icon indicating copy to clipboard operation
create-single-spa copied to clipboard

Unable to create Angular and Vue parcel apps using create-single-spa

Open armanossiloko opened this issue 9 months ago • 4 comments

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
$

Image

Image

In case it matters for whatever reason and if it wasn't obvious, I am running it on Windows 10.

armanossiloko avatar Mar 01 '25 23:03 armanossiloko

After updating the package on my machine and retrying the Angular process, this is what I get:

Image

As for Vue:

Image

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?).

armanossiloko avatar Mar 03 '25 09:03 armanossiloko

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.

internettrans avatar Mar 04 '25 04:03 internettrans

is this the fix you're after? https://github.com/single-spa/create-single-spa/issues/403#issuecomment-2662799618

nickdeakin avatar Mar 21 '25 17:03 nickdeakin

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?

armanossiloko avatar Mar 22 '25 13:03 armanossiloko