enuchi / React-Google-Apps-Script

This is your boilerplate project for developing React apps inside Google Sheets, Docs, Forms and Slides projects. It's perfect for personal projects and for publishing complex add-ons in the Google Workspace Marketplace.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot deploy app-script

tomzacchia opened this issue · comments

I cloned the project and ran into the following problem when running npm run deploy

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

There are three separate commands being run by the deploy script. rimraf dist && npm run build works without any issue, npx clasp push is the script that is producing the error above.

Has anyone experienced this? @enuchi

Hmm. Did you try asking in google/clasp? Can you try running that project on its own and see if you run into same issues when running clasp push?

Also curious what OS and node version you're using.

I'll ask in google clasp. What do you mean by "on its own?"

OS: Mac OS 12.3.1
Node: v16.13.1

@enuchi silly me, i had the rootDir path in .clasp.json because I've been playing with multiple app-script templates and copy-pasta'ed my way to frustration.

Sounds good @tomzacchia