Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2304: Cannot find name 'PredefinedColorSpace' #106

Closed
qjia7 opened this issue Sep 28, 2022 · 1 comment
Closed

error TS2304: Cannot find name 'PredefinedColorSpace' #106

qjia7 opened this issue Sep 28, 2022 · 1 comment

Comments

@qjia7
Copy link

qjia7 commented Sep 28, 2022

After upgrading webgpu/types from 0.1.16 to 0.1.21, I always meet below errors in PR tfjs:6862:

Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[96m../node_modules/@webgpu/types/dist/index.d.ts�[0m:�[93m587�[0m:�[93m16�[0m - �[91merror�[0m�[90m TS2304: �[0mCannot find name 'PredefinedColorSpace'.
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m587�[0m   colorSpace?: PredefinedColorSpace;
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m   �[0m �[91m               ~~~~~~~~~~~~~~~~~~~~�[0m
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[96m../node_modules/@webgpu/types/dist/index.d.ts�[0m:�[93m728�[0m:�[93m16�[0m - �[91merror�[0m�[90m TS2304: �[0mCannot find name 'PredefinedColorSpace'.
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m728�[0m   colorSpace?: PredefinedColorSpace;
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m   �[0m �[91m               ~~~~~~~~~~~~~~~~~~~~�[0m
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[96m../node_modules/@webgpu/types/dist/index.d.ts�[0m:�[93m800�[0m:�[93m16�[0m - �[91merror�[0m�[90m TS2304: �[0mCannot find name 'PredefinedColorSpace'.
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m800�[0m   colorSpace?: PredefinedColorSpace;
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": �[7m   �[0m �[91m               ~~~~~~~~~~~~~~~~~~~~�[0m
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": 
Step #2 - "run-cloudbuild": Step #20 - "build-tfjs": Found 3 errors.
@qjia7
Copy link
Author

qjia7 commented Sep 28, 2022

It turns out after upgrading typescript to 4.8.4. The errors disappear. So close this one.

@qjia7 qjia7 closed this as completed Sep 28, 2022
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

No branches or pull requests

1 participant