Created
May 1, 2017 18:11
-
-
Save gustavlrsn/509694de7f4ee5a5d720d218b21f288e to your computer and use it in GitHub Desktop.
Example bootstrap 4 integration into Next.js, with the reactstrap package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from 'next/head' | |
import { Container } from 'reactstrap' | |
const Layout = (props) => ( | |
<div> | |
<Head> | |
<title>PairHub</title> | |
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" /> | |
</Head> | |
<Container> | |
{props.children} | |
</Container> | |
</div> | |
) | |
export default Layout |
I'm having the exact same error that @hooman-limouee. Any ideas?
@hooman-limouee downgrading reactstrap to v5.0.0-beta fixed this issue for me
@DavyBello downgrading didn't work here, did you do anything else?
Same issue with react-popper on beta-2
Switching back to v5.0.0-beta worked for me too.
Official Reactstrap Issue about it: reactstrap/reactstrap#870 with workaround explained
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following error when using this approach.
any idea about fixing
react-popper.js
?