-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
v0.20.0 Failed to compile - 'material-ui' does not contain an export named 'TableSortLabel' #9388
Comments
|
Ah, right. Any idea why I'm seeing the component in the repo but not in the |
v1-beta is the default branch since that's the focus for new development, v0.20.0 is on the master branch. |
I have added the bug flag. The issue will be definitely solved once we use a different npm repository name for v1. |
@mui-org/core-contributors I think that we will better off hosting v1 under a different npm package name. Hosing all the packages under an organization will:
Here are two alternatives I'm considering. I don't think people have weighted their preference yet: import { Button } from '@material-ui/core';
import Icons from'@material-ui/icons';
import DatePicker from '@material-ui/date-picker'; import { Button } from '@mui-org/material-ui';
import Icons from'@mui-org/material-ui-icons';
import DatePicker from '@mui-org/material-ui-date-picker'; // More idea? |
So we have the npm org |
Purely from a usability standpoint, I favor keeping it all under |
@rosskevin We have: https://www.npmjs.com/org/material-ui and https://www.npmjs.com/org/mui-org |
I like option 1 from a usage standpoint, but it will be confusing if the org and/or repo names don't match. e.g. core package to material-ui repo? It are we going to rename the repo as well? |
We currently have https://www.npmjs.com/package/material-ui-next which some are using. I think it would be nice if we could keep the |
@oliviertassinari I like option 1. 👍 It would be nice to have many material-ui related packages (more components) available at |
@leMaik Yeh, I wish we could have gotten the material-ui organization name. But, unfortunately, it was taken. |
I also like option 1. better.
@hai-cea What about the 4 advantages of moving to an organization package name? |
@oliviertassinari Yeh, I agree with what you're saying. I'm just thinking there's an advantage to I think it makes total sense what you're saying. I'm just wondering if we want to make the separate package temporary? |
An alternative to this would be to prefix all material-ui packages with mui.
This is similar to React - https://github.com/facebook/react/tree/master/packages |
@hai-cea Does it mean you want to ask external lib authors to change the dependency from material-ui to material-ui-next while it's not stable, then asking them to move back to material-ui? It's really tricky as some external libs might be relying on Regarding, signaling what's official or not, provide simpler ACL handling and prevent future name clashing. It won't be an issue if we keep the mono-package approach or don't host new packages. |
Ok, as far as I'm concern. We can close this issue and defer the package name change to an ulterior moment. A point where we feel an better pain. This moment might never come. I have opened an issue to keep track of the 1993 LOCs #9469. |
@oliviertassinari Ah yeh, that's a really good point. I agree with you that keeping |
@mui-org/core-contributors I don't think that we have reached a consensus. The current answer to the migration problem if you rely on external libraries is: "port everything in one go". I still think that I'm closing the issue as I have been hijacking it. @mikeriley131 Sorry 😬 . |
Strong +1 on |
Expected Behavior
App should start without issue with MUI compiling properly.
Current Behavior
I get the following error after installing v0.20.0 and running
npm start
:When l look in the
node_modules
folder, there is noTableSortLabel.js
file in theTable
folder. I do see it in the repo though (https://github.com/mui-org/material-ui/blob/v1-beta/src/Table/TableSortLabel.js).Steps to Reproduce (for bugs)
npm uninstall material-ui
npm install material-ui@latest
npm start
,yarn start
, etc.)Context
Can not start app with lastest version of MUI.
Your Environment
The text was updated successfully, but these errors were encountered: