You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After added Routes to Router getting this below error.
Could you please help me to get out of this.
Uncaught TypeError: Cannot read property 'func' of undefined
at Object.exports.__esModule (bundle.js:25555)
at webpack_require (bundle.js:20)
at Object. (bundle.js:22611)
at Object.exports.__esModule (bundle.js:22775)
at webpack_require (bundle.js:20)
at Object.exports.__esModule (bundle.js:22447)
at webpack_require (bundle.js:20)
at Object. (bundle.js:68)
at webpack_require (bundle.js:20)
at Object. (bundle.js:47)
Thank You
The text was updated successfully, but these errors were encountered:
@nagarajach perhaps this is addressed in lectures beyond the last one that i watched, but what i found is that you cannot use a <Link> outside of a <Router>. I changed my app.js to the following, installed the necessary npm packages, and got the app to work.
import React, { Component } from 'react';
import Header from './header';
import { Router } from 'react-router-dom';
import createBrowserHistory from 'history/createBrowserHistory'
const customHistory = createBrowserHistory()
export default class App extends Component {
render() {
return (
<Router history={customHistory}>
<div>
<Header />
</div>
</Router>
);
}
}
Hello StephenGrider,
After added Routes to Router getting this below error.
Could you please help me to get out of this.
Uncaught TypeError: Cannot read property 'func' of undefined
at Object.exports.__esModule (bundle.js:25555)
at webpack_require (bundle.js:20)
at Object. (bundle.js:22611)
at Object.exports.__esModule (bundle.js:22775)
at webpack_require (bundle.js:20)
at Object.exports.__esModule (bundle.js:22447)
at webpack_require (bundle.js:20)
at Object. (bundle.js:68)
at webpack_require (bundle.js:20)
at Object. (bundle.js:47)
Thank You
The text was updated successfully, but these errors were encountered: