chrvadala / react-svg-pan-zoom

:eyes: A React component that adds pan and zoom features to SVG

Home Page:https://chrvadala.github.io/react-svg-pan-zoom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After build and deploy, occurs Uncaught TypeError: Super expression must either be null or a function

cola119 opened this issue · comments

Bug reports:

I'm using create-react-app and installed by npm install --save react-svg-pan-zoom

When npm start, my app works without problems in localhost.
But, When npm run build && firebase deploy, my app doen't work. The errors are as follows,

Uncaught TypeError: Super expression must either be null or a function
    at react-svg-pan-zoom.min.js:1628
    at react-svg-pan-zoom.min.js:1627
    at t.default (react-svg-pan-zoom.min.js:1611)
    at Object.e.exports (react-svg-pan-zoom.min.js:2574)
    at n (react-svg-pan-zoom.min.js:14)
    at Object.e.exports (react-svg-pan-zoom.min.js:865)
    at n (react-svg-pan-zoom.min.js:14)
    at Object.e.exports (react-svg-pan-zoom.min.js:2053)
    at n (react-svg-pan-zoom.min.js:14)
    at e.exports (react-svg-pan-zoom.min.js:50)
(anonymous) @ react-svg-pan-zoom.min.js:1628
(anonymous) @ react-svg-pan-zoom.min.js:1627
t.default @ react-svg-pan-zoom.min.js:1611
e.exports @ react-svg-pan-zoom.min.js:2574
n @ react-svg-pan-zoom.min.js:14
e.exports @ react-svg-pan-zoom.min.js:865
n @ react-svg-pan-zoom.min.js:14
e.exports @ react-svg-pan-zoom.min.js:2053
n @ react-svg-pan-zoom.min.js:14
e.exports @ react-svg-pan-zoom.min.js:50
(anonymous) @ react-svg-pan-zoom.min.js:4
f @ (index):1
19 @ main.1641ee16.chunk.js:1
f @ (index):1
9 @ serviceWorker.js:132
f @ (index):1
a @ (index):1
e @ (index):1
(anonymous) @ main.1641ee16.chunk.js:1

So App.js is the same as react-svg-pan-zoom/examples/controlled-component/src/App.js
In the local environment, work successfully but in the production environment, doesn't work.

sorry, I found the same issue #140