-
Notifications
You must be signed in to change notification settings - Fork 1
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
Frontend-build: investigate/solve issue between @svgr/webpack and webpack-dev-server #85
Comments
Question came up during the last FWG meeting: the Node 16 upgrade was NOT the cause, it seems (it was tagged before 9.1.2). |
What is the current status of this? What can I do to help? (Note: I really don't know very much about |
@inventhouse, the status is still as stated in the description. We're looking for somebody to try and discover what exactly causes the issue, and then hopefully submit a patch to fix it. If you do end up picking this up, you may find the discussion on the last FWG meeting about this useful. (It starts at the 24'25'' mark, roughly.) |
I was looking into this, but couldn't reprodue it as (a fatal error) on (learning, account, and publisher MFEs) what I got is (warnings related @edx/paragon or/and react-responsive) which I don't think that what this issue is concerned about, right?.
Worth noting that webpack-dev-server support node >= 12.13, so may be check if that contraint is met on the env where it fails. ref:
|
Also, it turns out the reproduction I thought I had seen in frontend-app-admin-portal when using [email protected] was not related to frontend-build after all, but an issue within the consuming MFE. So, frontend-app-admin-portal is also safely running [email protected] in production as of this writing. |
This is still blocking frontend-app-payment. |
@inventhouse, did openedx-unsupported/frontend-app-payment#579 fix the build? |
With much help from @davidjoy we've found that frontend-app-payment's NewRelic setup was archaic, we're modernizing that and continuing to investigate. |
Update: In addition to the above NewRelic updates, @davidjoy found that there were issues with |
Yes, looks like the header dependency updates also fixed the issue for Yay! I'd say this issue could be closed then. |
For posterity - the actual error didn't even manifest in GoCD because the webpack build output isn't echoed to the console. It returns a 1 error code but we see none of the error output. Following that, in the log, there was a red herring/symptom of the failed build, in that our new relic plugins failed to upload the build artifacts... because they didn't exist on the filesystem. I only noticed the problem when I tried to build frontend-app-payment locally with the |
Awesome, glad to hear this issue seems resolved! Closing the issue. |
Summary: the combination of two packages make an issue where some MFEs won't build after being updated to use frontend-build 9.1.2; 'npm run build' fails after necessary files aren't written into the dist folder, making a fatal error when pushing to New Relic because the bundle doesn't exist. ( "@svgr/webpack": "6.2.1", "webpack-dev-server": "4.7.3",)
Clues: (from Michael Terry and Adam Stankiewicz)
The text was updated successfully, but these errors were encountered: