Skip to content
New issue

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

Unknown props toastMessageFactory, toastType, preventDuplicates, newestOnTop #72

Open
jonasostrom opened this issue Aug 3, 2016 · 7 comments

Comments

@jonasostrom
Copy link

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
Copy link
Collaborator

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

@jonasostrom
Copy link
Author

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
Copy link
Collaborator

I would encourage you to check out this solved issue.

Please let us know if the issue persists.

@forrest-akin
Copy link

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
Copy link

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
Copy link

reproduced also in react 16

@elhay-av
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants