-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Modules can be included twice resulting in subtle hard-to-debug bugs #464
Comments
Hopefully this only impacts us in development because of npm link symlinks, but if not it would be inflating the js size too which is annoying. |
This can result in all sorts of fun. This bug was made because it turns out I managed to break the X on the desktop notifications toolbar because one require() was setting "hide the toolbar" and another require() was checking "is the toolbar hidden", and they were not hitting the same singleton. |
Relevant webpack bug (implies it should now "support symlinks" although I think this means it doesn't include the file twice but does make them two separate instances of the class) webpack/webpack#554 |
Stopgap for now is to assign |
This looks to be fixed with modern Webpack, analysing our bundles it looks sane |
Created by @ kegan:matrix.org.
This happens because webpack isn't smart enough to work out the absolute path of files when symlinks are involved. Therefore it sees vector-web/node_modules/matrix-react-sdk/foo as different to matrix-react-sdk/foo
The text was updated successfully, but these errors were encountered: