material-components-web-react icon indicating copy to clipboard operation
material-components-web-react copied to clipboard

@material/react-select css imports broken

Open Ashar2shahid opened this issue 6 years ago • 6 comments

import '@material/react-list/dist/menu.css';
import '@material/react-menu-surface/dist/menu.css';
import '@material/react-menu/dist/menu.css';
import '@material/react-select/dist/select.css';

the first two imports are broken. *even after install react-list and react-menu

Ashar2shahid avatar Aug 02 '19 10:08 Ashar2shahid

Also getting errors: Module not found: Can't resolve '@material/react-list/dist/menu.css' even after installing react-list, react-menu, react-menu-surface (despite these not being listed in the instructions for how to install react-select)

lbell avatar Aug 06 '19 04:08 lbell

Possibly related to https://github.com/material-components/material-components-web-react/issues/885 but even after downgrading to 0.13 of @material/react-select and associated dependencies, still getting the same error.

lbell avatar Aug 06 '19 04:08 lbell

Ignoring the first three imports, and just using import '@material/react-select/dist/select.css'; Seems to work fine for "basic" select (not enhanced) outline derivation. Can't make the "enhanced" version work, but don't have time to debug that right now.

lbell avatar Aug 22 '19 12:08 lbell

The README has the wrong import paths. It should be this -

import "@material/react-list/dist/list.css";
import "@material/react-menu-surface/dist/menu-surface.css";
import "@material/react-menu/dist/menu.css";
import "@material/react-select/dist/select.css";

cwerm avatar Aug 29 '19 18:08 cwerm

The README has the wrong import paths. It should be this -

import "@material/react-list/dist/list.css";
import "@material/react-menu-surface/dist/menu-surface.css";
import "@material/react-menu/dist/menu.css";
import "@material/react-select/dist/select.css";

Does the README have the correct import paths for SASS?

kintz09 avatar Sep 12 '19 15:09 kintz09

@kintz09 Not sure, I haven't used it with SASS/SCSS.

cwerm avatar Sep 17 '19 11:09 cwerm