question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clasp Push failed. Errors: Project contents must include a manifest file named appsscript.

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
labnolcommented, Aug 17, 2018

@google/clasp 1.5.3 fixes this issue.

2reactions
labnolcommented, Aug 6, 2018

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 `

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found