react-toastr icon indicating copy to clipboard operation
react-toastr copied to clipboard

Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop

Open jonasostrom opened this issue 8 years ago • 7 comments

warning.js:44 Warning: Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop on

tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop in div (created by ToastContainer) in ToastContainer (created by Notification) in Notification (created by ToolBar) in div (created by ToolBar) in ToolBar (created by BootstrapTable) in div (created by BootstrapTable) in div (created by BootstrapTable) in BootstrapTable (created by ListShipments) in div (created by ListShipments) in ListShipments (created by Dashboard) in div (created by Dashboard) in div (created by Dashboard) in div (created by Dashboard) in Dashboard

jonasostrom avatar Aug 03 '16 11:08 jonasostrom

@jonasostrom Kindly share the version of React you are using.

RangarajKaushikSundar avatar Aug 03 '16 17:08 RangarajKaushikSundar

devDependencies": { "babel-core": "6.11.4", "babel-preset-es2015": "6.9.0", "babel-preset-react": "6.11.1", "babel-register": "6.11.6", "babelify": "7.3.0", "browser-sync": "2.14.0", "browserify": "13.1.0", "eslint": "3.2.2", "eslint-plugin-react": "6.0.0", "exorcist": "0.4.0", "gulp": "3.9.1", "gulp-eslint": "3.0.1", "gulp-if-else": "1.0.3", "gulp-uglify": "2.0.0", "jquery": "2.2.4", "react": "15.3.0", "react-dom": "15.3.0", "react-router": "2.6.1", "vinyl-buffer": "1.0.0", "vinyl-source-stream": "1.1.0", "watchify": "3.7.0", "angular": "1.5.8", "gulp-autoprefixer": "3.1.0", "gulp-concat": "2.6.0", "gulp-cssnano": "2.1.2", "gulp-imagemin": "3.0.2", "gulp-livereload": "3.8.1", "gulp-newer": "1.2.0", "gulp-notify": "2.2.0", "gulp-plumber": "1.1.0", "gulp-sass": "2.3.2", "bootstrap": "4.0.0-alpha.2", "babel-preset-stage-0": "6.5.0", "classnames": "2.2.5", "tether": "1.3.3", "react-bootstrap-table": "2.3.9", "react-dropzone": "3.5.3" },

jonasostrom avatar Aug 03 '16 18:08 jonasostrom

I would encourage you to check out this solved issue.

Please let us know if the issue persists.

RangarajKaushikSundar avatar Aug 03 '16 19:08 RangarajKaushikSundar

I'm using React-15.4.1 and am running into this as well. What's weird is I only get it on initial load. I also confirmed that I'm using the latest version of react-toastr, which has the fix you linked to.

forrest-akin avatar Apr 17 '17 03:04 forrest-akin

i'm using [email protected] and [email protected]

i'm getting this error Warning: Unknown props `newestOnTop`, `positionClass`, `closeMethod` on <div> tag. Remove these props from the element.

elhay-av avatar Feb 26 '18 10:02 elhay-av

reproduced also in react 16

elhay-av avatar May 16 '18 07:05 elhay-av

ok, i just figure this out. in the last versions the API was changed: newestOnTop -> moved from toast-options to ToastContainer property preventDuplicates -> moved from toast-options to ToastContainer property closeMethod -> replaced by hideMethod positionClass -> replaced by className

and the issue is react-toastr print all unknown props to the DOM...

elhay-av avatar May 16 '18 11:05 elhay-av