Closed Vuizur closed 1 year ago
Did you import and use it as follows?
import superserial from 'superserial'
This package does not provide default exports. You must explicitly use the class you want to use.
import { Serializer } from 'superserial'
You can use an autocomplete class or type like this:
If this doesn't work, please tell me in detail about the version of yarn or npm and how you reproduced it. thank you :smile:
Thank you very much for the reply. 😀
I used it like this:
import { Serializer } from 'superserial'
My data: Windows, npm 9.2.0
At first I assumed it could be fixed by doing the same thing as done here: https://github.com/transitive-bullshit/chatgpt-api/commit/343157c2669be93cacea88209641518da792b884
But then I couldn't find a package.json in your repo, so now I have no idea.
I finally found it. 😄 It was a problem that only happened in the webpack environment.
https://github.com/webpack/enhanced-resolve/blob/main/lib/util/entrypoints.js#L455
Referring to the package.json document, it is recommended to use the default item last.
https://nodejs.org/api/packages.html
I am using a package.json file created through a library called dnt
. Fortunately, the related bug was fixed a week ago.
https://github.com/denoland/dnt/releases/tag/0.32.1
It will be redeployed after rebuilding.
try v0.3.3 :smile:
Awesome, thanks 👍
пн, 26 дек. 2022 г., 01:23 Changwan Jun @.***>:
try v0.3.3 😄
— Reply to this email directly, view it on GitHub https://github.com/denostack/superserial/issues/2#issuecomment-1364762391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG66XKKSVUPVV7U2W3S3S33WPDQOJANCNFSM6AAAAAAS5SFPW4 . You are receiving this because you authored the thread.Message ID: @.***>
Hello,
thanks for creating this project!
With the standard install, I encountered this error, but managed to resolve it like described in this comment: https://github.com/mpociot/chatgpt-vscode/issues/1#issuecomment-1337384976
(I don't know how the affected file is created though)