I had this same problem, however, the issue was a missing peer dependency on acorn
.
Adding acorn
to the devDependencies
section of my package.json
did the trick.
So my suggestion is to look for missing peer dependencies and add them to the devDependencies
section of your package.json
.