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
Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.
Checklist
Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Describe the bug
When importing y-websocket import { WebsocketProvider } from 'y-websocket', I get the error
Could not find a declaration file for module 'y-websocket'. '/Users/sa/.../node_modules/y-websocket/src/y-websocket.js' implicitly has an 'any' type.
There are types at '/Users/sa/.../node_modules/y-websocket/dist/src/y-websocket.d.ts', but this result could not be resolved when respecting package.json "exports". The 'y-websocket' library may need to update its package.json or typings.
I am getting around it by adding a // @ts-ignore before the import statement.
To Reproduce
Steps to reproduce the behavior:
Create a new Vite project with typescript, with vanilla js
Install these dependencies by editing your package.json file
Checklist
Describe the bug
When importing y-websocket
import { WebsocketProvider } from 'y-websocket'
, I get the errorI am getting around it by adding a
// @ts-ignore
before the import statement.To Reproduce
Steps to reproduce the behavior:
import { WebsocketProvider } from 'y-websocket'
inmain.ts
Expected behavior
It correctly uses the types file at y-websocket/dist/src/y-websocket.d.ts
Screenshots
Environment Information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: