-
Notifications
You must be signed in to change notification settings - Fork 354
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
full.render.js is broken on Realese 2.1.1 #160
Comments
In what environment and situation are you seeing this? I think the referenced commit should address it, but knowing that might help prevent similar mistakes in the future. |
I was using viz.js for my project with webpack, and it gave me the error message (shown below) when packing my project.
|
v2.1.2-pre.1 (also on NPM) includes a fix for this. It looks like you're importing the render script file. You can certainly do that, and I've added an example showing that technique. It fails to build with v2.1.1 (in the way you're seeing) and works with v2.1.2-pre.1. However, if possible I would recommend something like this example, where This avoids having Webpack actually look at the contents of the render script file, which is pretty big and will slow down the build. |
Thanks for the quick fix and the suggestion and explanation of using file-loader! :D Since the render script is a special case for the .js files, I use: |
The error message is
Identifier 'error' has already been declared
since
error
is already declared in the catch clause.full.render.js
The text was updated successfully, but these errors were encountered: