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

[Bug] Error after npm i TypeError: Cannot read property 'type' of undefined #67

Closed
johnandblue opened this issue Sep 29, 2019 · 4 comments
Labels

Comments

@johnandblue
Copy link

Version

material kit react 1.8.0

Reproduction link

https://github.com/johnandblue/material-kit-react

Operating System

node 12.2.0

Device

Mac OSX

Browser & Version

Any

Steps to reproduce

Clone the material kit react from https://github.com/creativetimofficial/material-kit-react
run npm i or npm run install:clean
run npm start

What is expected?

render the route / page using the component located in:
/src/views/Components/Components.js

What is actually happening?

Getting this error:

Failed to compile
./src/views/Components/Components.js
TypeError: Cannot read property 'type' of undefined
Occurred while linting /Users/jc/Desktop/dev/material-kit-react/src/views/Components/Components.js:38
    at Array.forEach (<anonymous>)
    at Array.forEach (<anonymous>)

Solution

Additional comments

@einazare
Copy link
Contributor

einazare commented Sep 30, 2019

Hello there, @johnandblue ,

Thank you for your interest in working with our products and also, thank you for following our rules of opening a new issue.
Please install NodeJS version 10.16.3 LTS.
The NodeJS Version Current (12.2.0) comes with a lot of bugs.

Let me know if that was the issue.

Best,
Manu

@johnandblue
Copy link
Author

Hi @einazare,

I changed the node version but didn't work.
NodeJS: v.10.16.3
NPM v.6.9.0

Here is an screenshot with some more detail on the error I'm getting on the browser:
Screenshot 2019-09-30 at 14 28 02

@einazare
Copy link
Contributor

einazare commented Sep 30, 2019

Hello again, @johnandblue ,

This is actually an error from the react-scripts package, here is the link to the mentioned issue: facebook/create-react-app#7753
To solve the issue, please run the following: npm i -E eslint@6.4.0.

Best,
Manu

@einazare einazare added bug and removed question labels Sep 30, 2019
@johnandblue
Copy link
Author

@einazare,

Now works like a charm! definitely saving exact made the trick.
Many thanks for the fast answers!

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

No branches or pull requests

2 participants