You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using webpack 5, you cannot import or require the built in module _http_common (this module obviously is only used server side inside getStaticProps)
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
12
What browser are you using?
Chrome
What operating system are you using?
Mac Big Sur
How are you deploying your application?
not relevant
Describe the Bug
When using webpack 5, you cannot import or require the built in module
_http_common
(this module obviously is only used server side insidegetStaticProps
)It works on webpack 4
Expected Behavior
I should be able to import
_http_common
To Reproduce
https://github.com/remorses/webpack5-next-bug-code-elimination
The text was updated successfully, but these errors were encountered: