ol-contextmenu icon indicating copy to clipboard operation
ol-contextmenu copied to clipboard

React import issue

Open vimal1998 opened this issue 3 years ago • 2 comments

@jonataswalker

Could not import the contextmenu in react

"Could not find a declaration file for module 'ol-contextmenu'. '/node_modules/ol-contextmenu/dist/ol-contextmenu.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/ol-contextmenu` if it exists or add a new declaration (.d.ts) file containing `declare module 'ol-contextmenu';`"

vimal1998 avatar Feb 15 '22 12:02 vimal1998

did you tried like this import ContextMenu from "ol-contextmenu";

it worked for me here is my example url

tarangrathod avatar May 13 '22 05:05 tarangrathod

Hi @tarangrathod

I've just published 5.0.0-alpha. Are you able to help with a validation?

PR still opened https://github.com/jonataswalker/ol-contextmenu/pull/219

jonataswalker avatar Aug 23 '22 03:08 jonataswalker

Should be solved with #219

jonataswalker avatar Sep 23 '22 19:09 jonataswalker