question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Uncaught ReferenceError: regeneratorRuntime is not defined' makes added external packages and importing fonts in css not working in dockerized production build of feature/apollo-pure branch

See original GitHub issue

Hello,

I am not sure whether this is due to my inexperience, but I have tried to find a solution but have been unable to find it so far.

My issues are two:

  1. The external packages I use, which I add using yarn add @types/PACKAGE_NAME or yarn add PACKAGE_NAME do not function inside the dockerized production build. Using yarn start to host a local version makes everything work, but these packages do not work in the dockerized build I get by running yarn run build -- --release --docker.
  2. In the same dockerized build, import fonts by using @import url('https://fonts.googleapis.com/css?family=Varela+Round:regular,bold,italic&subset=latin,latin-ext'); does not seem to work; the font resolves to the regular font.

If somebody knows what the problem is, I would very much appreciate your answer 😃

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Filco306commented, Jun 13, 2020

Closing this now, my solution is good enough 😃 Thank you!

0reactions
amatyas001commented, May 27, 2020

Check out this article from Risan Bagja.

There are also three ways of including this regeneratorRuntime module in your bundle:

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError regeneratorRuntime is not defined · Issue #9849
I'm building an SSR template, and when I use @babebl/register and then execute webpack (config), the system reported an error.
Read more >
regeneratorRuntime is not defined in reactjs when i use ...
With the help of Burak Ayyildiz, i solve my problem. I just install babel-plugin-transform-runtime with this command: npm i ...
Read more >
How to fix regeneratorRuntime is not defined?
First, I found this solution: add import "babel-polyfill"; at the top of the file that you are using the async function. BUT.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found