react-bootstrap-validation icon indicating copy to clipboard operation
react-bootstrap-validation copied to clipboard

Uncaught TypeError: Super expression must either be null or a function, not undefined

Open j0hny666 opened this issue 7 years ago • 27 comments

Hello,

I have recently updated my modules and started seeing this error. When debugging bundle.js, I have found out that it is caused with ValidatedInput having its parent "undefined".

React v15.3.1 React-bootstrap installed as a dependency React-bootstrap-validation current version Babel 6

Thanks for looking into this! spectacle gj3115

j0hny666 avatar Aug 24 '16 13:08 j0hny666

Moi aussi ("me too") - webpack dependencies are below. I really do not want to have to switch packages or roll my own but may have to if no solution is readily available... error is identical to that shown by OP. Any suggestions greatly apreciated

"dependencies": { "css-loader": "^0.23.1", "extract-text-webpack-plugin": "^1.0.1", "flux": "^2.1.1", "history": "^3.0.0", "postcss-loader": "^0.10.1", "react": "^15.3.0", "react-dom": "^15.3.0", "react-router": "^2.6.1", "style-loader": "^0.13.1", "react-bootstrap": "^0.30.3", "react-bootstrap-validation": "^0.1.11" },

Serexx avatar Aug 25 '16 03:08 Serexx

I am also having the same problem..

suman-tms avatar Aug 25 '16 05:08 suman-tms

I have found out what causes the issue: Input.js was removed from react-bootstrap and replaced by FormControl.js, but ValidatedInput.js still relies on former Input component. Unfortunately, I don't have enough experience to attempt fixing this issue myself, but at least this information can help others.

j0hny666 avatar Aug 25 '16 10:08 j0hny666

Duplicate of #69 #65 #56 ...

LoicUV avatar Aug 25 '16 13:08 LoicUV

New react-bootstrap breaks with this component.

xizhao avatar Aug 29 '16 22:08 xizhao

Yeah broken for me too.. @xizhao can you tell which version of react-bootstrap works with this?

salujaharkirat avatar Sep 08 '16 09:09 salujaharkirat

@jinxac Sure, for me anything under react-bootstrap <0.30.0 works, i'm on 0.29.5

xizhao avatar Sep 08 '16 21:09 xizhao

+1

westhomas avatar Sep 22 '16 01:09 westhomas

+1

lakhansamani avatar Oct 11 '16 10:10 lakhansamani

+1

sshaginyan avatar Oct 13 '16 10:10 sshaginyan

A lot of errors using a lower version :(

dvdgarcia avatar Oct 21 '16 10:10 dvdgarcia

+11

nguyenbathanh avatar Nov 17 '16 02:11 nguyenbathanh

+1

rodrigooler avatar Nov 25 '16 18:11 rodrigooler

can I use it with react-bootstrap(version > 0.30.0 )?

UpCoder avatar Nov 26 '16 09:11 UpCoder

+1

JohnHanna86 avatar Nov 27 '16 20:11 JohnHanna86

+1

MaxTwentythree avatar Nov 30 '16 15:11 MaxTwentythree

I have got this to work downgrading react-bootstrap back to ^0.28.1 anything above that seems to break with this error

Working with:

...
"react-bootstrap": "^0.28.1",
"react-bootstrap-validation": "^0.1.11",
....

kristiandelay avatar Dec 01 '16 17:12 kristiandelay

it's too bad that downgrading is the only solution

mikebz avatar Dec 04 '16 03:12 mikebz

I suggest using redux-form. It's very powerful form validation component for react.

nguyenbathanh avatar Dec 04 '16 03:12 nguyenbathanh

+1

AlexanderKozhevin avatar Aug 22 '17 14:08 AlexanderKozhevin

+1

satenderjoon avatar Sep 12 '17 09:09 satenderjoon

+1

vpste1 avatar Sep 22 '17 04:09 vpste1

+1

youslydogyou avatar Oct 06 '17 16:10 youslydogyou

Why do you all say "+1" instead of just thumbs up on the issue? If you have insight that can help resolving it, post your config and screenshots that could help further debugging. Otherwise you're just spamming this thread for no reason. This is likely a babel issue regarding circular module imports. I'm looking into it, will come back with my solution if I solve it.

PDS42 avatar Oct 12 '17 15:10 PDS42

Why do you all say "+1" instead of just thumbs up on the issue? If you have insight that can help resolving it, post your config and screenshots that could help further debugging. Otherwise you're just spamming this thread for no reason.

It goes back to the days before GitHub (GH) had the thumbs up/down reactions, a lot of people still post it out of habit, myself included (often times because I am replying via email on my phone).

I wish GH would have some automated workflow that would take comments with just "+1" or "-1" and convert them to thumbs up/down automatically and delete the comment or hide it.

I agree it is quite spammy.

mikedevita avatar Oct 12 '17 15:10 mikedevita

+1

neilyoung avatar Dec 12 '17 19:12 neilyoung

Any fix for this yet except for downgrading react-bootstrap, as far as anyone knows?

AdrianMrn avatar Aug 24 '18 11:08 AdrianMrn