Catalog build fails with UglifyJs compile error
When recently changing our catalog project, the build is no longer working giving an UglifyJs error:
✖ Failed to compile.
static/catalog.1b819263.js from UglifyJs
Unexpected token: name (slug) [./node_modules/github-slugger/index.js:23,0][static/catalog.1b819263.js:43626,6]
There was no change to our project except from markdown files.
A recent version of github-slugger using ES6 seems not to be handled by Babel and breaks UglifyJs.
I have the same Problem!
When recently changing our catalog project, the build is no longer working giving an UglifyJs error:
✖ Failed to compile. static/catalog.1b819263.js from UglifyJs Unexpected token: name (slug) [./node_modules/github-slugger/index.js:23,0][static/catalog.1b819263.js:43626,6]There was no change to our project except from markdown files.
A recent version of
github-sluggerusing ES6 seems not to be handled by Babel and breaks UglifyJs.
Could you fix the problem?
Hi Guys,
You need to use npm shrinkwrap and enforce in catalog github-slugger 1.1.3 as dep :)
Hi Guys,
You need to use npm shrinkwrap and enforce in catalog github-slugger 1.1.3 as dep :)
@aranwe Could you provide more detail on how to do this please? @grossbart , @blowery Could you maybe just alter the package to only use github-slugger 1.1.3 and no higher for now? Not being able to build is a major Issue.