Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot find module 'Html.App' elm v0.18

When upgrading from elm v0.17.1 to v0.18 we see the following error:

I cannot find module 'Html.App'.

the App method was available in v1.1.0 of the Html package see: http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-App

but appears to have been removed from v2.0.0 http://package.elm-lang.org/packages/elm-lang/html/2.0.0 hence the semver version bump...

Note: related to: Elm "cannot find module" (but this is specific to Html.App)

like image 492
nelsonic Avatar asked Nov 15 '16 17:11

nelsonic


1 Answers

The contents of Html.App were moved to the Html package in version 0.18. You can simply import from Html and remove references to Html.App.

From the upgrade instructions:

elm-lang/html collapsed Html.App into Html. So you need to remove any import Html.App imports and refer to Html.program instead.

See the release notes here.

like image 200
Chad Gilbert Avatar answered Oct 01 '22 08:10

Chad Gilbert