-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[core] Fix Netlify build cache issue #43281
Conversation
Netlify deploy previewhttps://deploy-preview-43281--material-ui.netlify.app/ Bundle size report |
@@ -9,7 +9,6 @@ | |||
|
|||
[build.environment] | |||
NODE_VERSION = "18" | |||
PNPM_FLAGS = "--shamefully-hoist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related discussion: mui/mui-x#14182 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I understand, Core shouldn't need this flag (see mui/mui-x#14182 (comment))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which Netlify functions are we talking about?
cc @michaldudak
mui-x
also has a function, which is running without problems. 🤔
Or do you mean this function: https://github.com/mui/material-ui/blob/next/netlify/functions/feedback-management.mts?
AFAIK, all of the dependencies used by this function are in the root package.json
. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted in mui/mui-x#14182 (comment), this now seems to work without the flag, which wasn't the case when I did the pnpm migration.
Replicate the change in: mui/mui-x#14182.
It looks like this setting was the culprit of sporadic Netlify behavior such as pulling a stale cache on some builds.