Transpiling javascript code using babel-cli via grunt. Seeing error "path.inShadow is not a function" when transpiling first javascript file containing a class definition.
I believe that I have fully updated node and all of the packages (I'm new to the node ecosystem, so perhaps I'm missing something here).
Here's the snippet showing my dev dependencies.
"devDependencies": { "@babel/core": "^7.2.2", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-preset-env": "^1.7.0", "grunt": "^1.0.3", "grunt-babel": "^8.0.0", "grunt-contrib-clean": "^2.0.0", "grunt-contrib-compress": "^1.4.3", "grunt-contrib-concat": "^1.0.1", "grunt-contrib-copy": "^1.0.0", "grunt-contrib-jasmine": "^2.0.3", "grunt-contrib-jshint": "^2.0.0", "grunt-contrib-rename": "^0.2.0", "grunt-contrib-uglify": "^4.0.0", "grunt-contrib-watch": "^1.1.0" }
I believe that my installis current because:
- npm install does nothing
- npm outdated shows nothing
- npm prune does nothing
node version is 10.15.0.
On a Mac in case that's relevant
Transpilation aborts with the error message:
Warning: path.inShadow is not a function Use --force to continue.
It appears to be compiling a javascript file containing a class definition at the time, none of the preceding files that are successfully transpiled contain such definitions.