rawgraphs-app
rawgraphs-app copied to clipboard
Windows - Failed to compile error on d3-zoom/zoom.js
I'm trying to get rawgraphs running on my local Windows machine but I'm getting an error on yarn start. I'm not a node developer so could be missing something simple in my environment.
Web browser and version Chrome 92.0.4515.107 (Official Build) (64-bit)
Operating System Windows 10
Steps to reproduce this Followed install instructions at https://github.com/rawgraphs/rawgraphs-app
- clone repository
yarn installyarn start- error
Tried updating everything (nodejs, npm, yarn). No different.
Additional context
Browser gives me this:

In the console I get:
Failed to compile.
./node_modules/d3-zoom/src/zoom.js
Attempted import error: 'pointer' is not exported from 'd3-selection'.
yarn install gives me some warnings and info but doesn't say it failed:
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.84s.
redacted:\yarn install --force
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@rdfjs-elements/sparql-editor > @rdfjs-elements/editor-base > @tpluscode/[email protected]" has unmet peer dependency "@types/[email protected] || 4.x".
warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
warning " > [email protected]" has unmet peer dependency "popper.js@^1.16.0".
warning "react-scripts > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
[4/4] Rebuilding all packages...
success Saved lockfile.
Done in 18.27s.
I followed the install instructions at https://github.com/rawgraphs/rawgraphs-app but note that they are macOS specific.
I worked around this by doing a yarn add d3-selection then repeated for each subsequent Failed to compile module that came up after that. This leads me to believe it's more about my node environment than anything else. I'll leave this issue open incase there's something useful in it for anyone else.
Thanks @notrom . I have had to use a similar approach to add node-sass to allow deploying the code into a Docker container. I'm sure there is a neater way to do this but at least the app will run now.