tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop #72

Open jonasostrom opened 8 years ago

jonasostrom commented 8 years ago

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

RangarajKaushikSundar commented 8 years ago

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

jonasostrom commented 8 years ago

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" },

RangarajKaushikSundar commented 8 years ago

I would encourage you to check out this solved issue.

Please let us know if the issue persists.

forrest-akin commented 7 years ago

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.

elhay-av commented 6 years ago

i'm using react@15.6.2 and react-toastr@3.0.0

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

elhay-av commented 6 years ago

reproduced also in react 16

elhay-av commented 6 years ago

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...