clasp Push failed. Errors: Project contents must include a manifest file named appsscript.
See original GitHub issueI’m confused.
npm run deploy
is finished with the error:
...
Push failed. Errors:
Project contents must include a manifest file named appsscript.
Files to push were:
└─ dist/code.js
└─ dist/index.html
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! apps-script-starter@1.0.4 deploy: `npm run build && ls -ah ./dist && clasp push`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the apps-script-starter@1.0.4 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2018-08-02T09_56_54_294Z-debug.log
If I run clasp push
directly it works fine.
I’ve checked CopyWebpackPlugin
it works fine too.
Also I tracked files in the directory. I’m on Linux
package.json
"scripts": {
"deploy_test": "npm run build && ls -ah ./dist && clasp push"
},
output
...
. .. appsscript.json code.js index.html
Push failed. Errors:
Project contents must include a manifest file named appsscript.
Files to push were:
└─ dist/code.js
└─ dist/index.html
As can you see the file is there.
Any ideas how to fix this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Issue with scopes when switching Google Apps Script projects ...
Using clasp. You can update the manifest files in batch by using the CLASP project (it uses Apps Script API under the hood)...
Read more >Manifests | Apps Script - Google Developers
The manifest file appears as a project file named appsscript.json . You can edit this file directly in the editor and save any...
Read more >CLASP Tutorial - Google Apps Script - How to Install CLASP
Learn how to setup CLASP to work with Google Apps Script projects locally. For more on this topic & help with installation check...
Read more >forked-clasp - npm Package Health Analysis - Snyk
Fetches a project from either a provided or saved script ID. Updates local files with Apps Script project. Options. --versionNumber <number> : The...
Read more >Problems when using CLASP to push client-side files from a ...
That is, after every edit is apps script, do a clasp pull to update your local project. Likewise, after a local edit, do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@google/clasp 1.5.3 fixes this issue.
The issue is specific to Google Clasp v1.5.2 though it works with the 1.4 release.
`➜ ls dist appsscript.json code.js
oauth2.js
➜ npx clasp status Not ignored files: └─ dist/code.js └─ dist/oauth2.js
Ignored files: └─ dist/appsscript.json
➜ npx clasp push Push failed. Errors: Project contents must include a manifest file named appsscript. Files to push were: └─ dist/code.js └─ dist/oauth2.js `