-
Notifications
You must be signed in to change notification settings - Fork 3
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
Module not found: Error: Default condition should be last one #2
Comments
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.
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 😄 |
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: transitive-bullshit/agentic@343157c 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 https://github.com/denoland/dnt/releases/tag/0.32.1 It will be redeployed after rebuilding. |
try v0.3.3 😄 |
Awesome, thanks 👍
пн, 26 дек. 2022 г., 01:23 Changwan Jun ***@***.***>:
… try v0.3.3 😄
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
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: mpociot/chatgpt-vscode#1 (comment)
(I don't know how the affected file is created though)
The text was updated successfully, but these errors were encountered: