-
Notifications
You must be signed in to change notification settings - Fork 394
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
Error running canvas-sketch-cli with d3 #149
Comments
Some context on this, because the issue will slowly become more prevalent as more packages start to publish with ESM syntax: The message actually stems from If you want to enable support for First, get the location of your global npm root -g Then you can open or navigate to this location, and find the Change @mattdesl I'm not certain how I'd go about updating |
I think ideally we should remove the budo + browserify + babel + esmify packages and use another bundler and esm solution. I really would like to support the following:
There are a few tools coming out recently but still looks like esbuild is my favourite and should work with all of the above. But it's a huge overhaul... |
I'm getting this error with a sketch that uses d3.js (v7):
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
Here's a minimal example based on canvas-sketch-cli --new template:
The text was updated successfully, but these errors were encountered: