catalog icon indicating copy to clipboard operation
catalog copied to clipboard

Catalog build fails with UglifyJs compile error

Open rdlxde opened this issue 2 years ago • 4 comments

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.

rdlxde avatar Oct 20 '21 10:10 rdlxde

I have the same Problem!

davidschubert avatar Dec 20 '21 12:12 davidschubert

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.

Could you fix the problem?

davidschubert avatar Dec 20 '21 12:12 davidschubert

Hi Guys,

You need to use npm shrinkwrap and enforce in catalog github-slugger 1.1.3 as dep :)

aranwe avatar May 18 '22 09:05 aranwe

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.

michael-oxborrow avatar Jun 24 '22 21:06 michael-oxborrow