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

Failed to compile #2

Open
Hemang999 opened this issue Sep 25, 2018 · 5 comments
Open

Failed to compile #2

Hemang999 opened this issue Sep 25, 2018 · 5 comments

Comments

@Hemang999
Copy link

Hemang999 commented Sep 25, 2018

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!

@mcchan1
Copy link
Owner

mcchan1 commented Sep 26, 2018

did you import React into your App?

@Hemang999
Copy link
Author

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

@KingLouisXVII
Copy link

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

@whiteyhat
Copy link

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

@me-ch
Copy link

me-ch commented Feb 28, 2019

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

Repository owner deleted a comment from Obasoro Feb 20, 2024
Repository owner deleted a comment Feb 26, 2024
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

5 participants