elm-plugin icon indicating copy to clipboard operation
elm-plugin copied to clipboard

False import error

Open MoonlightOwl opened this issue 9 years ago • 3 comments

For some reason this line gives an error "Cannot find module Material.Helpers": import Material.Helpers exposing (map1st, map2nd)

(I use https://github.com/debois/elm-mdl library in my project).

Nevertheless, compilation is successfull, and the code runs well, so this is not a real error.

MoonlightOwl avatar Feb 11 '17 11:02 MoonlightOwl

I also experience this with various imports. Could it be that "source-directories" is not respected in elm-package.json?

ccapndave avatar Mar 01 '17 09:03 ccapndave

I think this is caused by the effect function in the Material.Helpers module, which seems to be a keyword in https://github.com/durkiewicz/elm-plugin/blob/master/src/main/java/org/elmlang/intellijplugin/Elm.flex#L74.

camiel avatar Mar 05 '17 20:03 camiel

In this case it's similar to this issue: https://github.com/durkiewicz/elm-plugin/issues/31

durkiewicz avatar Mar 06 '17 11:03 durkiewicz