Replies: 1 comment 9 replies
-
|
I've tried to investigate this before, and even though I had a reproduction demo, I still found it hard to construct an answer. Pretty much, the problem is that WebPack uses require async when there's ES modules on the other side, or something like that.... https://webpack.js.org/blog/2020-10-10-webpack-5-release/#async-modules - and that was introduced somewhere in WebPack 5... |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
I've been using this code in my previous projects from long time ago (last one was using next 11)
It was working pretty well, but now I tried installing next13 and it's failing because
requirereturns aPromise.Isn't
requirecoming from webpack? And wasn't it supposed to be a sync operation?In this other projects it was only transformed to async if it detected the syntax
require(...).thenWhat's changed now?
Beta Was this translation helpful? Give feedback.
All reactions