Interact.js: Uncaught TypeError: Super expression must either be null or a function in PRODUCTION

Created on 10 May 2020  路  16Comments  路  Source: taye/interact.js

Expected behavior

It fails in production, successful build but white page with console err

Uncaught TypeError: Super expression must either be null or a function

Actual behavior

It should have worked.

System configuration

interact.js version: 1.9.13
Browser name and version: Chrome 81
Operating System: Linux Mint

wontfix

Most helpful comment

For those who are using React: bumping react-scripts to ^3.4.1 and babel-loader to ^8.1.0 did the trick.

All 16 comments

I've got the same problem. With production build (compressed version), uncompressed works well.

Same issue as well on 1.9.17 down to .11, haven't gone back further then that

I got that issue as well on 1.3.4

What build setup do you have?

What do you mean?

@zarincheg mentioned that

With production build (compressed version), uncompressed works well.

@webdeveloper001 are you using a <script src="[CDN URL]" /> tag?

I don't use interactjs directly. I am using react-calendar-timeline module which has interactjs as a dev dependency.

I'm experiencing the same issue with interactjs i'm installing it due to it being a peerDependency of react-calendar-timeline.
I can produce a successful build resolving the version to 1.3.4 in my applications root package.json.

"resolutions": { "interactjs": "1.3.4" }

Additional info to help debug the problem:
I'm using create-react-app to provide webpack config for the build/minification process.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I'd appreciate minimal a jsfiddle or codesandbox, etc. demo that reproduces this error :slightly_smiling_face:

For those who are using React: bumping react-scripts to ^3.4.1 and babel-loader to ^8.1.0 did the trick.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

same on 1.9.20

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

same on 1.10.0

@zarincheg me too!

Was this page helpful?
0 / 5 - 0 ratings