Replies: 1 comment
-
@Sparclex It seems that we faced exactly the same concern ( // next.config.js
module.exports = {
// Prefer loading of CommonJS over ES Modules
experimental: { esmExternals: false },
}; |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi
When using headless ui v1.5 with react
require.context(...)
seems to return a promise instead of a sync response. The problem seems to only exists when using v1.5. Does somebody know a solution to this. I would like to be able to use webpackrequire.context
synchronously even with headless ui, since it will be during the nextjs ssg anyways. I created an example project with and without headless ui to present the error. Using yarn for both:main branch, nextjs without headlessui
with-headless-ui branch
Would be great if someone could help me with this or provide a workaround. My goal is to dynamically load components from a directory synchronously.
Thanks,
Silvan
Beta Was this translation helpful? Give feedback.
All reactions