TeamWertarbyte / mdi-material-ui

Material-UI SvgIcon components for Material Design Icons.
MIT License
328 stars 15 forks source link

Textbox.js in 5.24.0 throw Error #29

Closed zjy01 closed 4 years ago

zjy01 commented 4 years ago
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _createIcon = require('./util/createIcon');

var _createIcon2 = _interopRequireDefault(_createIcon);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = (0, _createIcon2.default)('M14,17H7V15H14M17,13H7V11H17M17,9H7V7H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z');0,0 14,4H12V2H14.5C15.05,2 16,2.45 16,3C16,2.45 16.95,2 17.5,2H20V4H18A1,1 0 0,0 17,5V7M2,7H13V9H4V15H13V17H2V7M20,15V9H17V15H20Z');
leMaik commented 4 years ago

Fixed in v5.24.1

ArcadeRenegade commented 4 years ago

@leMaik i think v5.24.1 has some breaking changes. importing the icons are returning undefined for me.

ArcadeRenegade commented 4 years ago

sorry i mean 6.13.1 on npm

dohomi commented 4 years ago

I have a similiar issue:

[ warn ]  ./node_modules/mdi-material-ui/TextBox.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:

Happens with most recent 6.13.1 and @mdi/svg": "^5.0.45

leMaik commented 4 years ago

@ArcadeRenegade Indeed, there were breaking changes in Material Design Icons 5.x, just use the older version of mdi-material-ui if you need older icons.

@dohomi That issue is not related.