You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Describe the problem and how to reproduce it. If appropriate, include code samples, screenshots, error messages, etc.
Building a Typescript project using packages of "type": "module" and "moduleResolution": "nodenext" is broken because the types in the exports section is not specified.
Environment:
Specify the environment where you are witnessing the problem:
Version 3.0.22, ESM, Node 16, Typescript, MacOS
Details
Add any other information, context or details that could help track down the problem.
Since Typescript does not find types with the webmidi project, it reverts to the @types/webmidi, imported by the jzz package (a dependency of webmidi). These are probably old.
frontend/audio-ui/src/events/midi-event.ts:1:39 - error TS2306: File '/Users/torgeir/dev/tunasong/node_modules/@types/webmidi/index.d.ts' is not a module.
1 import type { NoteMessageEvent } from 'webmidi'
~~~~~~~~~
Description
Describe the problem and how to reproduce it. If appropriate, include code samples, screenshots, error messages, etc.
Building a Typescript project using packages of
"type": "module"
and"moduleResolution": "nodenext"
is broken because the types in theexports
section is not specified.The issue is discussed here: microsoft/TypeScript#50466
Environment:
Specify the environment where you are witnessing the problem:
Version 3.0.22, ESM, Node 16, Typescript, MacOS
Details
Add any other information, context or details that could help track down the problem.
Since Typescript does not find types with the
webmidi
project, it reverts to the@types/webmidi
, imported by thejzz
package (a dependency of webmidi). These are probably old.To reproduce:
The fix is easy and I will submit a PR for the fix shortly.
The text was updated successfully, but these errors were encountered: