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

/node_modules/react-times/lib/components/OutsideClickHandler.js:23:113) #84

Closed
pank0509 opened this issue Jun 20, 2018 · 2 comments
Closed

Comments

@pank0509
Copy link

Hi,
I am using React-times for one of my project.

"react-times": "^1.4.6"

node 8.10.0
npm -v 3.5.2

I am getting error.

TypeError: Super expression must either be null or a function, not undefined at _inherits (/var/www/plexusmd-js-web-frontend/node_modules/react-times/lib/components/OutsideClickHandler.js:23:113) at /var/www/plexusmd-js-web-frontend/node_modules/react-times/lib/components/OutsideClickHandler.js:36:3 at Object.<anonymous> (/var/www/plexusmd-js-web-frontend/node_modules/react-times/lib/components/OutsideClickHandler.js:96:2) at Module._compile (module.js:652:30) at Module._extensions..js (module.js:663:10) at require.extensions.(anonymous function) (/var/www/plexusmd-js-web-frontend/node_modules/babel-register/lib/node.js:152:7) at Object._module2.default._extensions.(anonymous function) [as .js] (/var/www/plexusmd-js-web-frontend/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:260:68) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Module._load (module.js:497:3)

My code goes like this I have startTime and timeQuantum in state.

<TimePicker focused time={(this.state.startTime) ? this.state.startTime : '08:00'} theme="material" colorPalette="dark" timeMode="12" onTimeChange={this.handleTimeChange} timeQuantum={(this.state.timeQuantum) ? this.state.timeQuantum : 'PM'} onTimeQuantumChange={this.timeQuantumChange} />

Can any one help me out.

@shianqi
Copy link
Contributor

shianqi commented Jun 20, 2018

@pank0509 Hi, OutsideClickHandler extends from PureComponent

You can check if the version of React in the project is higher than v15.3.

@ecmadao
Copy link
Owner

ecmadao commented Jun 21, 2018

react-times is v3.1.0 now, you can update this dependency to check if it solved. @pank0509

@ecmadao ecmadao closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants