SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed necessray packages

npm i react-bootstrap-validation", "npm install react-bootstrap

and updated typings

npm update typings

but still getting this error;

enter image description here

How can I tell tyscript I already have that module?

share|improve this question
up vote 7 down vote accepted

By running npm update typings you updated a tool, which is used to install typescript definitions. But you didn't install actual type definitions for react.

Actually you don't even need typings, because MS provided their own types publisher. Use this page to search for any type definitions. What you need to do is to run npm install --save @types/react-bootstrap. This effectively installs typescript definitions for react-bootrstrap.

I really recommend you to take some basic course online around react+typescript (udemy or pluralsight), because these concepts might be very very complicated when start learning from ground without much experience in the field.

share|improve this answer
    
Hello Sergei, thanks for answer I installed it as you said, but this time it couldnt find the Object in module. please check the post – TyForHelpDude 14 hours ago
1  
Take a look here - they removed ButtonInput in July 2016, last commit in react-bootstrap-validation is April 2016. That's the answer - react-bootstrap-validation repository didn't updated to match latest version of react-bootstrap. – Sergei Sergeev 13 hours ago
1  
In case if no definitions, you just use var myvar: any = require("mypackage"). In that case on type checking – Sergei Sergeev 13 hours ago
1  
Take a look here - they removed ButtonInput in July 2016..... - and I know, that's absolutely madness.... but that's the real state of opensource development for javascript nowadays... unfortunately. – Sergei Sergeev 13 hours ago
1  
this is why stackoverflow is life saver.. of course its nothing but a pretty website if experienced, helpful developers like you are not here. Thank you again – TyForHelpDude 13 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.