Skip to content
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

webpack4 throw cannot resolve "@hpcc-js/wasm/graphviz" #298

Open
linlinyang opened this issue Nov 28, 2023 · 0 comments
Open

webpack4 throw cannot resolve "@hpcc-js/wasm/graphviz" #298

linlinyang opened this issue Nov 28, 2023 · 0 comments

Comments

@linlinyang
Copy link

linlinyang commented Nov 28, 2023

Webpack4 not support export fields in package.json for '@hpcc-js/wasm'.
So the use of 'import { Graphviz } from "@hpcc-js/wasm/graphviz";' will throw error.

  1. In d3-graphvis/src/dot.js and d3-graphvis/src/graphviz.js:
  2. Change to 'import wasm from "@hpcc-js/wasm";' .
  3. And change ' Graphviz.load()' to 'wasm .Graphviz.load()'
  4. will fixed this problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant