Closed andreif closed 3 years ago
Creating a new standalone App Script project, building and pushing the code to it results in the following error
code: 400,
errors:
[ { message: 'A file with this name already exists in the current project: client/sidebar',
domain: 'global',
reason: 'badRequest' } ] }
└─ appsscript.json
└─ client/logo.svg.html
└─ client/sidebar.css.html
└─ client/sidebar.html
└─ client/sidebar.js
└─ dist/bundle.min.js.html
└─ dist/colors.js
└─ dist/constants.js
└─ dist/document.js
└─ dist/logo.svg.html
└─ dist/main.js
└─ dist/sidebar.css.html
└─ dist/sidebar.html
└─ dist/styles.html
└─ dist/util.js
└─ server/colors.js
└─ server/constants.js
└─ server/document.js
└─ server/main.js
└─ server/util.js
Pushed 20 files.
These files are not found in the project when opening it on the App Script webpage. It has just the default Code.gs placeholder file. I don't know where to even look to find the problem.
Got some help - one needs to add all dirs except dist
to .claspignore
. It should honestly be included in the repo.
I have added the add-on to my doc as a test and tried to run but got error
Exception: No HTML file named sidebar was found.
All dist files are available in the project now. Do I need more config to find them?
Alright, so in order to make it work one just need to set rootDir
to dist
in .clasp.json
. No need in .claspignore
.
Hi Alex and everyone! Code Blocks is a truly great tool but unfortunately I cannot use it as it is due to privacy/security concerns. Instead, I would like to fork it and run as an own instance in App Script service. This is not very clear how to do so I wonder if you have step-by-step instructions. Thank you!