-
Notifications
You must be signed in to change notification settings - Fork 19
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
Dynamic require of "assert" is not supported Error when importing Wakaru Unpacker #134
Comments
I noticed a few issues:
|
Thank you for the reply. I will like to note I am using tsx to start the session. package.json from the barebones install:
Same error output:
|
You are right. I think the ESM build is broken. |
seems like a hot topic over in esbuild I do think that the issue is because of mixing commonjs with esm builds. Hope these can help you publish a fixed npm build. |
Hello, I don't wish to annoy you. I made a band aid fix for my own testing environment while you are resolving this issue.
so far not causing issues from what I can see, thank you. |
I also saw that fix in esbuild's issue thread. Thanks for testing it out. I'm working on rewriting the whole bundling process, using rollup. I also noticed facebook/jscodeshift#500 mentions
Anyway, even though they might have other issues, I already have a plan to fork it to fix them. |
@Acters You might want to look at the zeromq v6 beta builds and see if they solve your issue; as there was another thread I was on recently where this seemed to be the best solution:
|
Status update:
|
Hello, I tried to add the Wakaru unpacker however, it seems that there is a problem.
I created a separate local environment to only install wakaru unpacker and unminify as stated in the API section:
npm install @wakaru/unpacker @wakaru/unminify
I, then, added
type: "module",
to package.json that was created, because it would throwSyntaxError: Cannot use import statement outside a module
All I have in the index.js file is
import { unpack } from '@wakaru/unpacker';
There is something awefully wrong in with importing the package.
This seemingly odd error that I just can't figure out on my own:
The text was updated successfully, but these errors were encountered: