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

ES Module support #8

Merged
merged 22 commits into from
Oct 26, 2021
Merged

ES Module support #8

merged 22 commits into from
Oct 26, 2021

Conversation

huan
Copy link
Member

@huan huan commented Oct 4, 2021

Link to:

Issues:

  1. There's no ChatOpera export from @chatopera/sdk

Error: src/asker.ts(14,3): error TS2305: Module '"@chatopera/sdk"' has no exported member 'Chatopera'.

See:

https://github.com/wechaty/wechaty-chatopera/blob/45fb0a43e0fbf4e5d19c2cf2c8db19de7f55ada8/src/asker.ts#L12-L15

@huan
Copy link
Member Author

huan commented Oct 4, 2021

@hailiang-wang Please help this PR to fix the ChatOpera import issue, then I will be able to continue working on it.

@huan
Copy link
Member Author

huan commented Oct 10, 2021

ping @hailiang-wang

@huan
Copy link
Member Author

huan commented Oct 17, 2021

Because the https://github.com/chatopera/chatopera-nodejs-sdk has been disabled the issue function, so I leave the reason here:

After inspecting the source code of @chatopera/sdk, I found that the typing was missing in the index.d.ts file: there's no Chatopera definition at all.

I hope it can be resolved because it is breaking the importing code in the downstream TS programs.

@huan
Copy link
Member Author

huan commented Oct 24, 2021

@mukaiu Could you please help us to review this PR, and if it's OK let's move on to merge it?

Thank you very much!

@huan huan requested a review from mukaiu October 24, 2021 03:14
RepoConfig,
ChatoperaOptions,
ChatoperaResponse,
} from './chatopera'
} from './chatopera.js'

import {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New code, need to add file extension.

Copy link
Collaborator

@mukaiu mukaiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge the latest code to resolve eslint.

@mukaiu mukaiu merged commit 8b4c8f7 into develop Oct 26, 2021
@huan huan deleted the esm branch October 27, 2021 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants