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

ReferenceError: regeneratorRuntime is not defined when compiling AOT #10

Closed
jancoow opened this issue Dec 23, 2019 · 3 comments
Closed

Comments

@jancoow
Copy link

jancoow commented Dec 23, 2019

Hi there,

When I'm running my angular project locally it works fine with angular-cli. Also my AOT build succeed. However, I'm unable to load my webapp after deploying it on a web server. I'm getting this error:

main-es2015.js:208629 Uncaught ReferenceError: regeneratorRuntime is not defined at main-es2015.js:208629 at main-es2015.js:208653 at Module../node_modules/rete/build/rete.esm.js (main-es2015.js:208693) at __webpack_require__ (runtime-es2015.js:85) at Module../src/app/explect/components/rete/rete-angular-render-plugin/src/socket/socket.component.ts (main-es2015.js:241147) at __webpack_require__ (runtime-es2015.js:85) at Module../src/app/explect/components/rete/rete-angular-render-plugin/src/socket/socket.component.ngfactory.js (main-es2015.js:241092) at __webpack_require__ (runtime-es2015.js:85) at Module../src/app/explect/components/rete/rete-angular-render-plugin/src/node/node.component.ngfactory.js (main-es2015.js:240944) at __webpack_require__ (runtime-es2015.js:85)

Why is this happening?

@Ni55aN
Copy link
Member

Ni55aN commented Dec 23, 2019

@jancoow
Copy link
Author

jancoow commented Dec 24, 2019

Thanks, it's indeed working with babel! Great! However, still some problems using vue.js with an AOT build. Do you have any suggestions how to build that one? The build also succeed, but I'm getting an error after viewing the web page again

Cannot set property ‘mustUseProp’ of undefined

Some people are suggestion to turn of the build optimizer etc., but that's something I really want to keep on.

--

"Solved" it by not using rete-context-menu plugin , so I don't need vue.js.

@Hydhen
Copy link

Hydhen commented Jan 7, 2021

Hello @jancoow !

I'm trying to setup ReteJs into my project and i'm facing the same issue, could you please tell more about how you solved this with babel ?

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

3 participants