dabeng / react-orgchart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
135 stars 112 forks source link

ReferenceError: regeneratorRuntime #14

Closed zacharytyhacz closed 4 years ago

zacharytyhacz commented 4 years ago

Hello, I have a very basic project based off the Pan and zoom example in the codesandbox. https://codesandbox.io/s/react-orgchart-demo-o3nf6

The page won't even load, react catches the error before the page loads.

Uncaught ReferenceError: regeneratorRuntime is not defined
 at react-dom.development.js:25012
    at react-dom.development.js:25012
    at renderWithHooks (react-dom.development.js:18331)
    at updateForwardRef (react-dom.development.js:20338)
    at beginWork (react-dom.development.js:22103)
    at HTMLUnknownElement.callCallback (react-dom.development.js:3596)
    at Object.invokeGuardedCallbackDev (radial-gradient.ts:22)
    at invokeGuardedCallback (-prefix-radial-gradient.ts:70)
    at beginWork$1 (react-dom.development.js:25012)
    at performUnitOfWork (react-dom.development.js:25012)
react-dom.development.js:22984 The above error occurred in the <ForwardRef> component:
    in ForwardRef
    in Unknown
    in Route
    in Routes
    in Router (created by BrowserRouter)
    in BrowserRouter
    in Unknown

Here is a minimal reproduced project: https://github.com/zacharytyhacz/react-orgchart-bug

image

zacharytyhacz commented 4 years ago

ok, the issue was related to the parcel-bundler and issues with babel.

See: https://github.com/parcel-bundler/parcel/issues/3375

itsnotme01 commented 4 years ago

Thank you very much, I was stucked with this issue!