Open paulyoung opened 5 years ago
I tried working around this issue by adding @xtuc/long
to my package.json
and setting NODE_PATH="$NODE_PATH:node_modules";
but then I encounter problems with missing peerDependencies. Not sure if that is related.
FWIW, I'm trying to get an app freshly generated from create-react-app
to build.
I've come to know that if I create a project that uses webpack, I'm pretty quickly going to run into a problem regarding the
@xtuc/long
package. It usually manifests as a "runtime" error (when running a webpack build, not a nix compilation error) and looks something like this:Usually I just add
@xtuc/long
to mypackage.json
and move on, but this time that didn't work so I started investigating further.In this instance, I verified that the
package.json
for@webassemblyjs/wast-printer
looked reasonable, which it does:However, there is no
node_modules
directory:I looked one level up, and there is a
node_modules
directory with an@xtuc
directory in it:But the contents of
node_modules/@xtuc
did not contain along
directory:The
package.json
file in that directory is for the@xtuc/long
package: