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

Mising types preventing compilation #575

Closed
damms005 opened this issue Feb 19, 2024 · 2 comments
Closed

Mising types preventing compilation #575

damms005 opened this issue Feb 19, 2024 · 2 comments

Comments

@damms005
Copy link

I got compilation errors in my TypeScript project:

npm run compile                           

> [email protected] compile
> tsc -p ./

node_modules/@types/emscripten/index.d.ts:44:33 - error TS2304: Cannot find name 'WebGLRenderingContext'.

44     preinitializedWebGLContext: WebGLRenderingContext;
                                   ~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/emscripten/index.d.ts:58:28 - error TS2304: Cannot find name 'MessageEvent'.

58     onCustomMessage(event: MessageEvent): void;
                              ~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/@types/emscripten/index.d.ts:44

How to reproduce

  • git clone https://github.com/damms005/devdb-vscode
  • git checkout chore/switch-sqlite3-to-sqljs
  • npm i
  • npm run compile
  • See the error above
@lovasoa
Copy link
Member

lovasoa commented Feb 19, 2024

this does not seem related to sql js

@damms005
Copy link
Author

It is related to sql js and you can see why just by running npm why @types/emscripten

npm why @types/emscripten             
@types/[email protected] dev
node_modules/@types/emscripten
  @types/emscripten@"*" from @types/[email protected]
  node_modules/@types/sql.js
    dev @types/sql.js@"^1.4.9" from the root project

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

2 participants