'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 issueHello,
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:
- The external packages I use, which I add using
yarn add @types/PACKAGE_NAME
oryarn add PACKAGE_NAME
do not function inside the dockerized production build. Usingyarn start
to host a local version makes everything work, but these packages do not work in the dockerized build I get by runningyarn run build -- --release --docker
. - 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:
- Created 3 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this now, my solution is good enough 😃 Thank you!
Check out this article from Risan Bagja.