I can't seem to understand how to import a polyfill #11275
-
Hello! However, I'm having lots of troubles setting up adonisjs' websocket client library In the documentation says
But how do I do that? Right now I'm trying in .babelrc
But that throws me an error saying: So, how should I import it? Question number 2: once I resolve that... how do I import the library so it only loads in the client? I would really like to be able to use nextjs as a frontend with adonisjs as a backend. But this configuration error is tearing me down :( If anyone could indicate me what steps I should follow, that'd be amazing! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
regenerator-runtime is already included in Next.js, so there's nothing to add really. |
Beta Was this translation helpful? Give feedback.
regenerator-runtime is already included in Next.js, so there's nothing to add really.