Skip to content
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

You may need an appropriate loader to handle this file type. #16

Closed
softmarshmallow opened this issue Jun 14, 2018 · 3 comments
Closed

Comments

@softmarshmallow
Copy link

in package.json

"dependencies": {
    "@material-ui/core": "^1.2.1",
    "@material-ui/icons": "^1.1.0",
    "material-kit-react": "git+https://github.com/creativetimofficial/material-kit-react.git",
    "react": "^16.4.0",
    "react-dom": "^16.4.0",
    "react-scripts": "1.1.4"
  },

in component
import Button from "material-kit-react/src/components/CustomButtons/Button";

in component.render
<Button type="button" color="primary">Primary</Button>

error is..

Failed to compile.

./node_modules/material-kit-react/src/components/CustomButtons/Button.jsx
Module parse failed: Unexpected token (15:25)
You may need an appropriate loader to handle this file type.
| import buttonStyle from "assets/jss/material-kit-react/components/buttonStyle.jsx";
|
| function RegularButton({ ...props }) {
| const {
| classes,

whats wrong with here?

@einazare
Copy link
Contributor

Hello @softmarshmallow ,

Thank you for your interest in using our product and for giving us this warning.
It seems that our product needs some changes so it can be used as a npmjs package.
While we are working on that (i am guessing it will take us somewhere around a month, since we are currently working on some other products, and i am going to take a 2 week vacation) you can just download/clone the product and use it as is.

Best,
Manu

@go2ready
Copy link

go2ready commented Jul 1, 2018

Same issue here with npmjs, love to see it fixed!

@einazare
Copy link
Contributor

einazare commented Jul 1, 2018

Hello @go2ready ,

Thank you for your interest in using our product.
You can take a look here: https://github.com/creativetimofficial/material-kit-react/pulls to see what the fix could be.
As of moment we cannot accept those pull requests since we need to have same versions on creative-tim.com, github and npmjs.
On our next update we are going to accept those pr and it should work just fine with npmjs as well.

Best,
Manu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants