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

Module parse failed: Unexpected keyword 'var' #59

Closed
shubhanus opened this issue Jun 18, 2019 · 4 comments
Closed

Module parse failed: Unexpected keyword 'var' #59

shubhanus opened this issue Jun 18, 2019 · 4 comments

Comments

@shubhanus
Copy link

I am trying to use

import HomeIcon from 'mdi-react/HomeIcon';

<HomeIcon size="21px" />

in dev it is working fine but when i am trying to make production build it throws

ERROR in ./app/ui-components/ResponsiveHeader/index.js 8:19
Module parse failed: Unexpected keyword 'var' (8:19)
You may need an appropriate loader to handle this file type.
| import './styles.scss';
| import logo from 'images/logo.svg';
> import HomeIcon, { var _ref =
| /*#__PURE__*/
| _jsx(ResponsiveHeader, {
 @ ./app/ui-containers/StyleGuide.js 13:0-62 36:29-45
 @ ./app/config/routeConfig.js
 @ ./app/containers/App/index.js
 @ ./app/app.js
 @ multi ./node_modules/react-app-polyfill/ie11.js ./app/app.js
@levrik
Copy link
Owner

levrik commented Jun 18, 2019

That looks like some issue on your bundler's configuration or your code. Please check!

@levrik
Copy link
Owner

levrik commented Jul 14, 2019

Were you able to resolve this issue?

@levrik
Copy link
Owner

levrik commented Sep 10, 2019

I'll close this issue now. If you're still experiencing this issue, let me know.

@levrik levrik closed this as completed Sep 10, 2019
@rendomnet
Copy link

@shubhanus how did you resolved this?

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

No branches or pull requests

3 participants