-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Typescript: TS2307/TS2688 (Cannot Find Module/Cannot Find Type Definition) Errors #1183
Comments
At least with TypeScript 2.1, you don't have to add anything to the import * as React from 'react';
import { Button } from 'semantic-ui-react'; |
Thanks. That's what I thought (and that is how I'm importing in the source) but it's not working. My
|
Just in case someone else has the same issue and stumbles upon this: you need to tell the compiler to use node module resolution. I.e. add the following to your
|
I have the |
I'm having a hard time using the library in a typescript project. Adding the semantic-ui-react folder to typeRoots (
"typeRoots": ["./node_modules/semantic-ui-react/"]
) results in a slew of TS2307 errors and the following:Installing the
index.d.ts
using Typings still results in the TS2307 errors but the final error is slightly different (it can't findmodules
rather thandist
):What is the intended way to import the definitions into a project?
The text was updated successfully, but these errors were encountered: