-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Build error upgrading from 5.0.0-alpha.20 to 5.0.0-alpha.21 #24206
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
Comments
This comment has been minimized.
This comment has been minimized.
@matchatype I managed to successfully run & build our nextjs example - https://github.com/mui-org/material-ui/tree/next/examples/nextjs I added usage to the |
@matchatype sorry I saw now that you use typescript. Let me try the example of nextjs with typescript and will give more feedback. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@matchatype I've tried just now locally the https://github.com/mui-org/material-ui/tree/next/examples/nextjs-with-typescript and it builds and runs successfully. Would recommend comparing the config between your project and that one to see if something is different. It's hard/impossible for us to debug the issue when we don't have a clear repro. |
I'm also having the exact same problem, tried deleting node_modules and reinstalled without success, I'm using npm 7 and I don't think my app uses |
@mnajdova hello! I was just having the same issue. Here's a minimal reproduction based on the next https://github.com/flpvsk/mui-alpha-21-issue-24206 This is where MUI is imported: node -v # v15.5.0
npm -v # 7.3.0 |
@flpvsk Perfect, thanks for the reproduction. I took some time to explore it further (~10 minutes), especially making it as dead simple as possible while still reproducing the issue. I have found one problem, that might be enough to fix. {
"sideEffects": false,
"module": "./index.js",
"main": "../node/styles/index.js",
"types": "./index.d.ts"
} https://unpkg.com/browse/@material-ui/[email protected]/styles/package.json {
"sideEffects": false,
"module": "./index.js",
"main": "..\\node\\styles\\index.js",
"types": "./index.d.ts"
} https://unpkg.com/browse/@material-ui/[email protected]/styles/package.json It's the first time we make a release from a Windows machine. |
Would the following be enough for fixing it in the next time we release it from a Windows machine? diff --git a/scripts/copy-files.js b/scripts/copy-files.js
index 146adead04..229b21d7da 100644
--- a/scripts/copy-files.js
+++ b/scripts/copy-files.js
@@ -31,7 +31,7 @@ async function createModulePackages({ from, to }) {
const packageJson = {
sideEffects: false,
module: './index.js',
- main: path.join('../node', directoryPackage, 'index.js'),
+ main: `../node/${directoryPackage}/index.js`,
types: './index.d.ts',
}; In anycase, we round-robin releases, the next release (v5.0.0-alpha.22) won't happen from a Windows machine, but we still need to fix it for the next time. |
This comment has been minimized.
This comment has been minimized.
When this going to solve? |
@usama-asfar As soon as we make a new release. Maybe tomorrow so that developers coming back from holidays can have a working environment with the latest changes. |
I am experiencing the same issue, since ive upgraded once to Alpha 21. Even after reverting my package.json and cleaning the npm cache, the problem persists. |
v5.0.0-alpha.22 was released |
I'm on
|
After updating the following dependencies, the project fails at build time:
Building the app produces the following error. I went through the release changes, but I couldn't find the reason.
Current Behavior 😯
Expected Behavior 🤔
Steps to Reproduce 🕹
Steps:
Context 🔦
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: