labnol / apps-script-starter

Setup a local development environment inside Visual Studio Code and build Google Workspace add-ons with Google Apps Script
https://www.youtube.com/watch?v=KxdCIbeO4Uk
MIT License
1.1k stars 176 forks source link

Nested clasp projects are not supported. #19

Closed antony closed 4 years ago

antony commented 4 years ago

Trying to follow the instructions from the readme, but fails at the first step, I get "nested clasp projects are not supported"

 ant@xeno  ~/Projects/apps-script-starter  npx clasp create --title "Hot Garbage" --rootDir ./dist
> Create which script?
standalone

Nested clasp projects are not supported.
kimbim commented 4 years ago

Same here!

labnol commented 4 years ago

Could you please post more details here. I tried it again and seem to work.

npx clasp create --title "Hot Garbage" --rootDir ./dist
? Create which script? standalone
Created new standalone script: https://script.google.com/d/1234/edit
Warning: files in subfolder are not accounted for unless you set a '.claspignore' file.
Cloned 1 file.
└─ ./dist/appsscript.json
coisnepe commented 4 years ago

Also getting the same error...

pavittarx commented 4 years ago

I am experiencing the same. Here is the output from my terminal image

pavittarx commented 4 years ago

I was able to resolve the issue, I found an .clasp.json file located one directory above the project directory. ./../ . Removing the filr ./../.clasp.json resolves the issue.

./ is the directory you are executing the command npx clasp create

Akhil-Raj commented 2 years ago

I was able to resolve the issue, I found an .clasp.json file located one directory above the project directory. ./../ . Removing the filr ./../.clasp.json resolves the issue.

./ is the directory you are executing the command npx clasp create

Worked for me