-
Notifications
You must be signed in to change notification settings - Fork 4
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 error #52
Comments
Hey @wingy3181 , Having trouble replicating the issue. Could you give me details about your environment? e.g. node version, pnpm version, full package.json, operating system maybe? Anything you can think of Want to match your environment as closely as possible |
Here is repo where i have the issue in isolation It has the node version i am using in the My OS is the latest macos 15.2 |
Thanks @wingy3181 , I cloned that repo and replicated the bug. Looks like an easy fix I've published a beta version of the fix under 2.3.3-beta.1. Give it a go a let me know if it fixes the issue. If it does I'll merge the fix a publish |
Oh also.. while I was looking into the issue I noticed the package doesn't have a default export, so I've added that in too |
All good @simonmcallister0210 |
Nice, should be published now. Thanks for your help @wingy3181 🙂 |
Hi,
I am just trying to run
node script.js
with
script.js
contents as follows:and i get the following output:
Also within the package.json I have set the type: "module"
I noticed in the source code it has the following line
import { Buffer } from "buffer/"; // use the browser compatible buffer library
Obviously there is a reason you are using
buffer/
....... but how can i get this working then?The text was updated successfully, but these errors were encountered: