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

Could not find a declaration file for module 'three-orbitcontrols'. #7

Closed
mavrickp opened this issue May 22, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@mavrickp
Copy link

1 | import { useEffect, useRef } from 'react';
2 | import { AmbientLight, Color, PerspectiveCamera, PointLight } from 'three';

3 | import OrbitControls from 'three-orbitcontrols';
| ^
4 |
5 | import {
6 | CAMERA_DAMPING_FACTOR,

@chrisrzhou chrisrzhou added the bug Something isn't working label Jun 10, 2019
@chrisrzhou
Copy link
Owner

Hi @mavrickp, I fixed the Typescript types in 3.1.1 (codesandbox example). Please install the latest version with yarn/npm!

For your specific example, it seems you are calling three-orbitcontrols in your project. This library is untyped so I think you need to declare it as a module in a module.d.ts file in your project. If you are just using react-wordcloud, you should not need to access orbit controls, and this problem might go away.

Closing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants