-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Absolute Imports and aliases feature does not work with Webpack 5 + TypeScript + Yarn PnP #16892
Comments
I just checked webpack configs and could confirmed that module.exports = {
webpack: config => {
console.log(config.resolve.modules)
console.log(config.resolve.plugins)
return config
}
} |
It's a webpack bug about handling yarn pnp |
You shouldn't use path mapping like that, it's better to use the |
If I shouldn’t use this feature, this behavior should be removed from the
document.
2020년 9월 11일 (금) 05:22, Kristoffer K. <notifications@github.com>님이 작성:
…
You shouldn't use path mapping like that, it's better to use the link
protcol as that is tool agnostic
https://yarnpkg.com/features/protocols#why-is-the-link-protocol-recommended-over-aliases-for-path-mapping
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16892 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABB235OXJJM2OHELUIFEBQ3SFEYO5ANCNFSM4Q44LXRA>
.
|
Does someone have a link to the related issue on the Webpack repository ( as it is a Webpack-side problem )? |
webpack/enhanced-resolve#245 has been merged, I'll try this again and close this if it's fixed. |
Resolved in Webpack 5.0.0 and Next.js 9.5.5. @sokra Thanks for your effort!! |
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. |
Bug report
Describe the bug
Absolute Imports and aliases feature does not work with Webpack 5 + TypeScript + Yarn PnP. To reproduce this bug, all these three conditions must be met
To Reproduce
Expected behavior
Running webpage
Screenshots
System information
Reference
The text was updated successfully, but these errors were encountered: