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

Fixed type issue #3

Closed
wants to merge 3 commits into from
Closed

Conversation

JimmyBjorklund
Copy link
Contributor

Proposed solution to the Type issue when not using dom. Had to change the tsconfig to match the parent version in order to make it compile on node 22. Not sure if you rather change the parent.

…ettings in parent tsconfig.

> ts-gems@3.5.1 compile
> tsc -b tsconfig.json

tsconfig.json:5:15 - error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.

5     "module": "CommonJS",
                ~~~~~~~~~~
npm run build

tsc

node_modules/strict-typed-events/node_modules/ts-gems/lib/types.d.ts:21:17 - error TS2304: Cannot find name 'ReadableStreamGetReaderOptions'.

21 options?: ReadableStreamGetReaderOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/strict-typed-events/node_modules/ts-gems/lib/types.d.ts:22:8 - error TS2552: Cannot find name 'ReadableStreamReader'. Did you mean 'ReadableStream'?

22 ): ReadableStreamReader;
~~~~~~~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: node_modules/strict-typed-events/node_modules/ts-gems/lib/types.d.ts:21
@erayhanoglu
Copy link
Member

Adding reference to dom library fixed the issue. No need this implementation.

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