eth-ipfs icon indicating copy to clipboard operation
eth-ipfs copied to clipboard

Failed to compile

Open Hemang999 opened this issue 7 years ago • 5 comments

Failed to compile ./src/App.js

Line 104: 'Grid' is not defined react/jsx-no-undef Line 106: 'Form' is not defined react/jsx-no-undef Line 111: 'Button' is not defined react/jsx-no-undef Line 119: 'Button' is not defined react/jsx-no-undef Line 121: 'Table' is not defined react/jsx-no-undef

Please help!

Hemang999 avatar Sep 25 '18 15:09 Hemang999

did you import React into your App?

mcchan1 avatar Sep 26 '18 18:09 mcchan1

import React, { Component } from 'react'; Is that it? I have followed the tutorial exactly.

Hemang999 avatar Sep 26 '18 19:09 Hemang999

Had the same issue. It works now after I added this import to app.js: import {Table, Grid, Button, Form } from 'react-bootstrap';

KingLouisXVII avatar Oct 05 '18 13:10 KingLouisXVII

Yes, same. I think this issue should be close @mcchan1

whiteyhat avatar Oct 06 '18 15:10 whiteyhat

Also, for the ones that have recently tried the tutorial, you might also want to replace Grid with Component. Also bootstrap version 4 won't work either. Use this version instead: npm install --save react-bootstrap bootstrap@3

me-ch avatar Feb 28 '19 05:02 me-ch