You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to make scripts in Node.js environment. I started to develope GAS application in the environment created by Apps Script in IDE (ASIDE). As I need to use the library Dayjs, I installed that and make scripts according to the official documentation. Then I got the error message "SyntaxError: Cannot use import statement outside a module".
If anyone has any information that can help solve this please let me know.
More information is below:
That error indicates that you're compiling into commonjs (require) instead of esm syntax (import) at some point in your compile chain. You may be able to change this in your rollup config, maybe by changing your target or by bundling dayjs into your distribution (Rollup's external vs bundled behavior). This readme may help
I am new to make scripts in Node.js environment. I started to develope GAS application in the environment created by Apps Script in IDE (ASIDE). As I need to use the library Dayjs, I installed that and make scripts according to the official documentation. Then I got the error message "SyntaxError: Cannot use import statement outside a module".
If anyone has any information that can help solve this please let me know.
More information is below:
index.ts:
appsscript.json:
package.json:
tsconfig.json:
The text was updated successfully, but these errors were encountered: