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
The @vidstack/react package.json does not define "types" in its "exports" field.
I switched to ts 5 to test the new moduleResolution option bundler and hit the following error. I don't know if it has to do with the switch to ts 5, I believe it's also an error in ts 4 with moduleResolution set to nodenext. The error is valid anyways, I guess.
Could not find a declaration file for module '@vidstack/react'. '/Users/andreas/Developer/fruits/lime/node_modules/@vidstack/react/dist/server.js' implicitly has an 'any' type.
There are types at '/Users/andreas/Developer/fruits/lime/node_modules/@vidstack/react/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@vidstack/react' library may need to update its package.json or typings.ts(7016)
Expected Behavior:
The @vidstack/react package.json defines "types" in its "exports" field.
Steps To Reproduce:
Use ts 5 & module resolution bundler (or probably also ts 4 and module resolution nodenext).
Import @vidstack/react.
Type error
Environment:
Framework: React
Meta Framework: Next.js
Node: 18
TS: 5
The text was updated successfully, but these errors were encountered:
mihar-22
changed the title
@vidstack/react package.json does not define "types" in its "exports" field
React package does not define "types" in "exports"
Feb 13, 2023
Current Behavior:
The @vidstack/react package.json does not define "types" in its "exports" field.
I switched to ts 5 to test the new
moduleResolution
optionbundler
and hit the following error. I don't know if it has to do with the switch to ts 5, I believe it's also an error in ts 4 withmoduleResolution
set tonodenext
. The error is valid anyways, I guess.Expected Behavior:
The @vidstack/react package.json defines "types" in its "exports" field.
Steps To Reproduce:
Environment:
The text was updated successfully, but these errors were encountered: