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

Comments

@softmarshmallow
Copy link

commented Jun 14, 2018

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

This comment has been minimized.

Copy link
Collaborator

commented Jun 15, 2018

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

This comment has been minimized.

Copy link

commented Jul 1, 2018

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

@EINazare

This comment has been minimized.

Copy link
Collaborator

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

@EINazare EINazare closed this Aug 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.