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

Does not work with React Version > 16.0.0 #37

Open
shilpikanade opened this issue Apr 9, 2018 · 2 comments
Open

Does not work with React Version > 16.0.0 #37

shilpikanade opened this issue Apr 9, 2018 · 2 comments

Comments

@shilpikanade
Copy link

Hello -

This is the error I get when I try to import the library.

import { Map } from 'react-openlayers'

(TS) Could not find a declaration file for module 'react-openlayers'. '../node_modules/react-openlayers/dist/react-openlayers.umd.js' implicitly has an 'any' type.
Try npm install @types/react-openlayers if it exists or add a new declaration (.d.ts) file containing declare module 'react-openlayers';

Thanks, Shilpi

@shilpikanade
Copy link
Author

These files are missing

"module": "dist/index.js",
"typings": "dist/index.d.ts",

@martinmcneela
Copy link

Is there any fix for this?

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

2 participants