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
It seems like webpack's resolve.alias in webpack config is not behaving correctly in the last canary releases. When trying to create a conditional resolution, for example:
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 27, 2022
natew
pushed a commit
to natew/next.js
that referenced
this issue
Feb 16, 2022
What version of Next.js are you using?
11.1.3-canary.41
What version of Node.js are you using?
14.18.0
What browser are you using?
Chrome
What operating system are you using?
Windows 10
How are you deploying your application?
next start
Describe the Bug
Hi there.
It seems like webpack's
resolve.alias
in webpack config is not behaving correctly in the last canary releases. When trying to create a conditional resolution, for example:It still keeps the "parse" imports, resulting in errors during SSR page compilation related to missing browser APIs. (localStorage in this case).
This is only the case in canary, and works fine in the lastest.
Expected Behavior
Resolve all imports during SSR stage to the specified module.
To Reproduce
npm i
npm run build
The text was updated successfully, but these errors were encountered: