google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.53k stars 423 forks source link

Can't push local files to remote #955

Closed tomzacchia closed 1 year ago

tomzacchia commented 1 year ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

npx clasp push does not push files to remote

Actual Behavior

npx clasp push should push files to remote

Steps to Reproduce the Problem

  1. clone this starter repo
  2. npm run push

I get the following error:

Cannot find package '.../app-script/node_modules/ts2gas/' imported from .../app-script/node_modules/@google/clasp/build/src/files.js

I managed to isolate the bug to the npx clasp push command, as detailed here.

Specifications