11

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)

Community
  • 1
  • 1
nelsonic
  • 31,111
  • 21
  • 89
  • 120

1 Answers1

14

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.

Chad Gilbert
  • 36,115
  • 4
  • 89
  • 97