Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catalog build fails with UglifyJs compile error #541

Open
rdlxde opened this issue Oct 20, 2021 · 4 comments
Open

Catalog build fails with UglifyJs compile error #541

rdlxde opened this issue Oct 20, 2021 · 4 comments

Comments

@rdlxde
Copy link

rdlxde commented Oct 20, 2021

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.

@davidschubert
Copy link

I have the same Problem!

@davidschubert
Copy link

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?

@aranwe
Copy link

aranwe commented May 18, 2022

Hi Guys,

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

@michael-oxborrow
Copy link

michael-oxborrow commented Jun 24, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants