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

Error building with UglifyJS: "Super expression must either be null or a function, not defined" #53

Open
samsch opened this issue Sep 4, 2018 · 5 comments

Comments

@samsch
Copy link

samsch commented Sep 4, 2018

Dupe of #49 & #51, but with reproduction: https://github.com/samsch/test-dazzle

I forked and modified the build to fix this. https://github.com/samsch/dazzle/tree/1.4.0-cjs

There's no real need to build with Webpack for CommonJS modules, none of the features in the config are being used, so this does the build with just Babel and outputs the compiled modules to dist/.

You can directly install from the .tzg file attached to the release to get this fix now.

npm i https://github.com/samsch/dazzle/releases/download/1.4.0-cjs/react-dazzle-1.4.0.tgz

I changed the package main to point to dist/index.js, but the package also includes the umd build as dist/dazzle.min.js.

@pcross616
Copy link
Collaborator

Thank you for the repro. I will look at it and see what we can do about the umd builds. Feel free to make a PR from your fork.

@repl-andrew-ovens
Copy link

We are also experiencing this issue. Getting an actual version with a fix would be great

@jazarja
Copy link

jazarja commented Jan 25, 2019

I also found this issue.

@sudo-tee
Copy link

I also had the issue upgrading my project.
I hope a new version with this fix comes out

@cjc343
Copy link

cjc343 commented Jul 26, 2019

@samsch Could you create a pull request with your changes?

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

6 participants