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
type.
| There are types at /project/node_modules/zustand-middleware-yjs/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The zustand-middleware-yjs' library may need to update its package.json or typings.
-- | --
To Reproduce
Steps to reproduce the behavior:
configure your tsconfig with compilerOptions.moduleResolution: "Bundler"
import zustand-middleware-yjs
Expected behavior
typings are expected to be imported correctly like when I set moduleResolution to node
Versions (please complete the following information):
yjs v1.3.1
Describe the bug
typings for zustand-middleware-yjs cannot be imported, see the error message
⚠ Error (TS7016) |
Could not find a declaration file for module/project/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/zustand-middleware-yjs/dist/yjs.mjs
implicitly has anTo Reproduce
Steps to reproduce the behavior:
Expected behavior
typings are expected to be imported correctly like when I set moduleResolution to node
Versions (please complete the following information):
yjs v1.3.1
solution seems to be to change how the exports are referenced in package.json, see microsoft/TypeScript#52363 (comment)
The text was updated successfully, but these errors were encountered: