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: Issue 581 Webpack 4 build error #707

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

dashcraft
Copy link
Contributor

Fixes #581
This pr reworks the problematic error message to not use the coalesce operator to resolve webpack4 issues.
In the future might look at the current rollup config and transpile to es5 or another valid syntax and export for older build setups. This however is a quick and easy solution for this specific build issue.

I verified this by creating a webpack 4 config and found the issue and resolved locally. This isn't the most foolproof way, but whenever I fixed it this way, create-react-app using webpack 4 successfully compiled, and angular 13 does not have this issue, it used webpack 5 now.

…sues. In the future might look at current rollup setup and transpile to es5 or another valid syntax and export for older build setups
@dashcraft dashcraft changed the title Issue 581: Webpack 4 build error fix: Issue 581 Webpack 4 build error Nov 29, 2021
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

thanks

@alanshaw alanshaw merged commit 2c658a1 into main Nov 29, 2021
@alanshaw alanshaw deleted the fixes/581-webpack-4-build-error branch November 29, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular 12 compatibilty
3 participants