Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Module not found: Can't resolve 'react/lib/ReactComponentTreeHook' #61

Open
@saulojoab

Description

@saulojoab

Hey, so...

I created a new project with:
create-react-app example
Then installed ReactJS-AdminLTE with:
npm install adminlte-reactjs
Then, I went into my App.js and imported an InfoTile and used it. This is my code:

import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import InfoTile from 'adminlte-reactjs';

class App extends Component {
  render() {
    return (
      <div className="App">
        <InfoTile  
           width ={3}
           content = '' 
           icon = 'fa-envelope-o' 
           stats = '1,410' 
           subject = 'Messages' 
           theme = 'bg-aqua' 
      />
      </div>
    );
  }
}

export default App;

Everything seems fine. However, when I run npm start, I get this:
image

./node_modules/adminlte-reactjs/node_modules/react-dom/lib/ReactDOMUnknownPropertyHook.js
Module not found: Can't resolve 'react/lib/ReactComponentTreeHook' in 'C:\Users\Saulo Joab\Desktop\Random Files\Projetos\React\smarttramo\node_modules\adminlte-reactjs\node_modules\react-dom\lib'

Did I do something wrong? I tried really hard to solve that error but nothing worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions