Closed Dakkers closed 9 years ago
The formatting feature was working until recently.
The root problem is that the gulp-jsbeautifier
plugin uses an incompatible and untested version of js-beautifer 1.5.2.
Changing the version number to 1.5.1 then reinstalling the plugin node modules puts everything back in sync.
For a temporary hack, run these bash commands from a *unix terminal at the root of this project.
rm -rf ./node_modules/gulp-jsbeautifier
npm install
cd ./node_modules/gulp-jsbeautifier
rm -rf /node_modules/
sed 's/~1.5.1/1.5.1/' package.json > package.json.new
rm package.json
mv package.json.new package.json
npm install
cd ../../
Now when you run npm run format
, everything should work.
The best thing is to replace the gulp-jsbeautifier
plug-in with a more stable alternative. Especially, since gulp-jsbeautifier
is only at version 0.0.2
Cool. We should put that in the readme on the next PR.
added to readme in #125 . will keep this open though in case it bugs someone.
Ok. This issue is now fixed. https://github.com/tarunc/gulp-jsbeautifier/pull/2
All that's needed is to update the gulp-jsbeautifier
version to 0.0.3
and npm install
.
I'll try to push a pull request if I have time tonight.
npm run format
errors. I get the following:@LarryBattle thoughts on what this is due to?