FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

Missing "csa-template" keyword error #96

Closed miljan-aleksic closed 4 years ago

miljan-aleksic commented 4 years ago

Hi,

following the documentation I runned npx create-snowpack-app new-dir --template vue and got the following result.

- Using template vue
- Creating a new project in /Volumes/.../new-dir

[ERROR] Template is not properly marked as a CSA template (Missing "csa-template" keyword in package.json).
[ERROR] Cannot continue safely. Exiting...

I tried blank and react template with same results.

jihchi commented 4 years ago

This works for me:

npx create-snowpack-app new-dir --template @snowpack/app-template-vue
eliamartani commented 4 years ago

Hi,

following the documentation I runned npx create-snowpack-app new-dir --template vue and got the following result.

- Using template vue
- Creating a new project in /Volumes/.../new-dir

[ERROR] Template is not properly marked as a CSA template (Missing "csa-template" keyword in package.json).
[ERROR] Cannot continue safely. Exiting...

I tried blank and react template with same results.

You're missing @snowpack/app-template- before vue.

miljan-aleksic commented 4 years ago

Thanks, it's confusing that the error is about a template missconfiguration rather than unexistent template. It clearly states 'Using template vue' and continues forward.

FredKSchott commented 4 years ago

Yup, "Using template vue" feels like it's telling you that the package is fine.

We should improve that missing "csa-template" error to say something like "this isn't actually a CSA template, check the name to make sure you're using the correct package name".

If anyone is interested in tackling in a PR, I'd love to merge this improvement!

stramel commented 4 years ago

I will improve this tomorrow. I noticed this when looking into another issue.