Open fullth opened 1 year ago
yes, in *.gs files see
// Compiled using undefined undefined (TypeScript 4.9.5)
tsconfig.json
{ "compilerOptions": { "lib": [ "esnext" ], "experimentalDecorators": true } }
node -v v21.2.0 clasp -v 2.4.2 OS: Mac Ventura
Any progress? I started using clasp few days ago and after tutorial I see the same comment with undefined
... Thanks in advance for any help!
UPDATE:
Small progress :) The second undefined
is related to version
in package.json
!
My current comment: // Compiled using undefined 0.0.1 (TypeScript 4.9.5)
, so I suppose the first undefined
will be related to other value from project settings.
The comment originates from this line in ts2gas
https://github.com/grant/ts2gas/blob/535c850b0fd92203f885a8623f65caaa70887c51/src/index.ts#L374
I am unsure if either ts2gas
or clasp
need to be updated. I have stopped using Google Sheets and clasp
a few years ago and no longer contribute these projects.
So the undefined
parts come from the package.json fields name
and version
, declaring them properly will return a "good" output
{
"name": "my-project",
"version": "1.0.0",
"devDependencies": {
"@types/google-apps-script": "^1.0.83"
}
}
compiled file example output:
// Compiled using my-project 1.0.0 (TypeScript 4.9.5)
...
This might well be fixed documenting this behavior or prompting user for these values when creating or importing a project
Expected Behavior
Replace something instead 'undefined'.
Actual Behavior
Commented at the top '// Compiled using undefined undefined (TypeScript 4.9.5)'
Steps to Reproduce the Problem
Specifications
node -v
): v14.20.0clasp -v
): v2.4.2