# Elm v0.19 broke ContextMenu

**URL:** https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777
**Category:** Request Feedback
**Created:** [August 28, 2018, 4:18pm UTC](https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777 "2018-08-28T16:18:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![urigoren](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/urigoren/32/1215_2.png) [@urigoren](https://discourse.elm-lang.org/u/urigoren)
#### Post date: [August 28, 2018, 4:18pm UTC](https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777/1 "2018-08-28T16:18:44Z")

</div>

I’ve been using this module:  
[https://package.elm-lang.org/packages/jinjor/elm-contextmenu/latest/ContextMenu](https://package.elm-lang.org/packages/jinjor/elm-contextmenu/latest/ContextMenu)

Which is no longer working in elm 0.19, because of the lack of the `Window` module.

Is there a quick fix ? could any one help me with a 0.19 compatible version of this module ?

I really want to love elm, and I’ve been using elm 0.18 in our production environment, and telling people how great it is.

I am sorry, but it is impossible to be an elm evangelist when a new version of elm makes our production code useless.

---

<div class="post-metadata">

### Author: ![evancz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/evancz/32/16_2.png) [@evancz](https://discourse.elm-lang.org/u/evancz)
#### Post date: [August 28, 2018, 4:43pm UTC](https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777/2 "2018-08-28T16:43:12Z")

</div>

When there are releases of a language, it often takes a while for all packages in the ecosystem to be upgraded. This is true in Haskell at least, but I think it is new for folks coming from JS where the norms are different.

In this case, the author is a very nice person who lives in Japan, and there may be things going on in his life at this time. I would rather not speculate as to why something else took priority in the last six days.

In the meantime, if it needs a `Window` module, the upgrade guide mentions [here](https://github.com/elm/compiler/blob/master/upgrade-docs/0.19.md#packages-moved) that `elm-lang/window` is now covered by `elm/browser`. So what you need should be possible with [`onResize`](https://package.elm-lang.org/packages/elm/browser/latest/Browser-Events#onResize) and [`getViewport`](https://package.elm-lang.org/packages/elm/browser/latest/Browser-Dom#getViewport).

I understand that it is satisfying to vent your frustration directly to the people who can help, but it can be quite difficult emotionally for those people. In any case, if you need any help past the info provided here, please ask.

---

<div class="post-metadata">

### Author: ![urigoren](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/urigoren/32/1215_2.png) [@urigoren](https://discourse.elm-lang.org/u/urigoren)
#### Post date: [August 28, 2018, 7:05pm UTC](https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777/3 "2018-08-28T19:05:52Z")

</div>

Evan, first of all - I’d like to thank you deeply for `elm`, we’ve been using it in production for the last few months and it’s pretty great.

From my perspective (as I also wrote [on quora](https://www.quora.com/Which-do-you-prefer-and-why-Haskell-or-Elm)), `elm` is by far more useful than `haskell`, more production ready, and better designed.  
That’s why I my expectations from `elm` are higher than from `haskell`.

Please do not be offended by my criticism, but I would expect breaking changes to be made gradually.

For example, in our case, `v0.19` should throw a warning of sort of:

> `import Window` would be deprecated in `v0.20`, consider using `import Browser` instead.

Thanks again, and I’ll post more specific questions on a different thread as I’ll try to convert `ContextMenu` to `v0.19`

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [September 8, 2018, 1:16pm UTC](https://discourse.elm-lang.org/t/elm-v0-19-broke-contextmenu/1777/5 "2018-09-08T13:16:56Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
