Templarian / MaterialDesign-React

Dist for Material Design Icons React Component for JS/TypeScript
https://materialdesignicons.com
MIT License
142 stars 20 forks source link

Stacks do not work #19

Closed mririgoyen closed 5 years ago

mririgoyen commented 5 years ago

The documentation states to use a Stack, to import the components like this:

import Icon, { Stack } from '@mdi/react';

However, when doing that on the current version, you receive the following error:

[!] Error: 'Stack' is not exported by node_modules/@mdi/react/Icon.js
https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-
src/components/ToolbarMenu/ToolbarMenu.jsx (7:15)
5: import { Manager, Reference, Popper } from 'react-popper';
6: import { ClickAwayListener, MenuList, Tooltip } from '@material-ui/core';
7: import Icon, { Stack } from '@mdi/react';
                  ^
8: import { mdiColorHelper, mdiMenuDown } from '@mdi/js';
Error: 'Stack' is not exported by node_modules/@mdi/react/Icon.js
Templarian commented 5 years ago

By the way, no idea what this wouldn't have worked prior. Just published an update and re-tested everything.