We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using import { Push } from "react-history/Actions";
Error TypeError: Cannot read property 'oneOf' of undefined
8 | var action = exports.action = _react.PropTypes.oneOf(['PUSH', 'REPLACE', 'POP']);
The text was updated successfully, but these errors were encountered:
Related to incompatibility with React 16 I believe. See #30.
I'm currently trying this as a workaround.
import "./react-history-compat"; import History from "react-history/BrowserHistory";
where "./react-history-compat" is
"./react-history-compat"
import React from "react"; import PropTypes from "prop-types"; React.PropTypes = PropTypes;
Or use the version published by @researchgate at https://github.com/researchgate/react-history/releases/tag/v0.19.1.
npm i --save @researchgate/react-history
import { BrowserHistory as History } from "@researchgate/react-history"
Sorry, something went wrong.
No branches or pull requests
Using
import { Push } from "react-history/Actions";
Error
TypeError: Cannot read property 'oneOf' of undefined
The text was updated successfully, but these errors were encountered: