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

Cannot find module '../../../../../ably.js' #1495

Closed
melodyclue opened this issue Nov 10, 2023 · 5 comments · Fixed by #1509
Closed

Cannot find module '../../../../../ably.js' #1495

melodyclue opened this issue Nov 10, 2023 · 5 comments · Fixed by #1509

Comments

@melodyclue
Copy link

The Types used in ably appear to be imported from ably.js, but this path is said not to exist.
This causes channel.publish to be any

スクリーンショット 2023-11-10 12 00 14
@melodyclue
Copy link
Author

melodyclue commented Nov 10, 2023

This works.
import { Types } from '../../../../ably';

instead of
import { Types } from '../../../../../ably.js';

P.S
maybe this issue related to pnpm...

Copy link

sync-by-unito bot commented Nov 10, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3942

@owenpearson
Copy link
Member

Hey @melodyclue, thanks for reporting this - you're right it is an issue with pnpm and the typings work fine with plain npm. I'll let you know when we've released a fix.

@owenpearson
Copy link
Member

Hey @melodyclue, we've fixed this issue now, please try version 1.2.48 and let us know if you have any further issues 🙂

@melodyclue
Copy link
Author

@owenpearson Thanks! Now Type all works well 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants