WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-160c86-80.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 97241 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: You should not use <Route> or withRouter() outside a <Router>
Expected behavior
To be able to render NavBar links within a react-router <Router>
.
Actual behavior
Returns error You should not use <Route> or withRouter() outside a <Router>
.
I'm not sure why this is occurring. As you can see in my code below, the header code, with the MDBNavbar
and MDBNavbarBrand
are within the <Router>
. I've tried to strip my code down to the most bare elements (no Redux, no history, no components) and I'm still getting this error.
Any input or assistance would be greatly appreciated. Thank you.
Resources (screenshots, code snippets etc.)
import React from 'react'
import ReactDOM from 'react-dom'
import * as serviceWorker from './serviceWorker'
// MDB React initialization
import '@fortawesome/fontawesome-free/css/all.min.css'
import 'bootstrap-css-only/css/bootstrap.min.css'
import 'mdbreact/dist/css/mdb.css'
import {BrowserRouter as Router} from 'react-router-dom'
import {MDBNavbar, MDBNavbarBrand} from 'mdbreact'
const target = document.querySelector('#root')
const jsx = (
<div>
<Router>
<header>
<MDBNavbar expand='md' scrolling fixed='top'>
<MDBNavbarBrand href='/'>
<strong >Job Hunt App</strong>
</MDBNavbarBrand>
</MDBNavbar>
</header>
</Router>
</div>
)
ReactDOM.render(jsx, target)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.13.0
- Device: MacBook Air
- Browser: Chrome
- OS: Mac OS
- Provided sample code: No
- Provided link: No