Fix problem with webpack not being able to transpile files on Linux
I got this problem when running pubsweet start
after cloning this repo
ERROR in ./node_modules/joi-browser/dist/joi-browser.js
Module build failed: ReferenceError: Unknown plugin "transform-object-assign" specified in ".../my-app/node_modules/joi-browser/package.json" at 1, attempted to resolve relative to ".../my-app/node_modules/joi-browser"
My system
Debian GNU/Linux 9.2 64 bit (stretch)
Kernel: 4.9.0-4-amd64 x86_64
Node v8.9.3
Webpack 3.10.0
To solve it I just had to run npm install
in node_modules/joi-browser
.
Another interesting thing to note here is that I didn't run into this problem when I ran pubsweet start
in xpub-collabra
from xpub repo.