Skip to content

Conversation

@tbo47
Copy link
Contributor

@tbo47 tbo47 commented Dec 2, 2025

➜  konva git:(master) tsc --removeComments
src/Global.ts:30:10 - error TS2552: Cannot find name 'global'. Did you mean 'glob'?

30   typeof global !== 'undefined'
            ~~~~~~

src/Global.ts:31:7 - error TS2552: Cannot find name 'global'. Did you mean 'glob'?

31     ? global
         ~~~~~~
Found 2 errors in the same file, starting at: src/Global.ts:30

Adding the 2 ts-ignore make tsc compile the project without errors.

@lavrton
Copy link
Member

lavrton commented Dec 4, 2025

Hmm. I don't see the error when I run npx tsc --removeComments.
Do you have a different ts version installed or a different config?

@tbo47
Copy link
Contributor Author

tbo47 commented Dec 5, 2025

The errors come with a newer version:

npx tsc --version
Version 5.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants