FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]

Home Page:https://www.snowpack.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing "csa-template" keyword error

miljan-aleksic opened this issue · comments

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.

This works for me:

npx create-snowpack-app new-dir --template @snowpack/app-template-vue

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.

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.

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!

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