Skip to content
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

fix: Add a webpackrule to resolve module js files in node_modules #3754

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 14, 2023

This should probably go into the webpack config project, but until it is fixed there, we should fix it here.

Somewhere in a module js (ESM) file, probably by webpack-node-polyfills, process/browser without the required .js extension is imported. We do not use babel-loader on the node_modules and the default loader defaults to resolveFullySpecified = true, so this causes an issue. See also https://webpack.js.org/configuration/module/#resolvefullyspecified

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Feb 14, 2023
@susnux susnux added this to the 7.6.0 milestone Feb 15, 2023
@szaimen szaimen modified the milestones: 7.6.0, 7.7.0 Feb 15, 2023
Copy link
Contributor

@raimund-schluessler raimund-schluessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@susnux Awesome, thanks a lot! The local styleguide build works again.

@raimund-schluessler raimund-schluessler merged commit 61409e1 into master Feb 15, 2023
@raimund-schluessler raimund-schluessler deleted the fix/styleguide-build branch February 15, 2023 15:53
@szaimen szaimen mentioned this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm run styleguide broken
4 participants