rakutentech / r10

R10 is a library of interactive building blocks written in Elm and elm-ui that we use at Rakuten for creating user interfaces.
https://package.elm-lang.org/packages/rakutentech/r10/latest/
BSD 3-Clause "New" or "Revised" License
74 stars 6 forks source link

Invalid Element.WithContext imports #11

Open csaltos opened 3 years ago

csaltos commented 3 years ago

Thank you very much for R10, it looks very nice. I'm trying to use the simpleView example for the new version 4 but there are compilation errors. Here is the full bug report ->

CONTEXT:

R10 version: 4.1.1 (and since version 4.0.0) elm version: 0.19.1

DESCRIPTION:

When trying to use the examples the Element.WithContext import is missing.

REPRODUCTION STEPS:

git clone git@github.com:rakutentech/r10.git
cd r10/examples/simpleView
elm make src/Main.elm

CURRENT BEHAVIOR:

The compiler reports several errors like this:

-- MODULE NOT FOUND - ../r10/src/R10/Transition.elm

You are trying to import a `Element.WithContext` module:

6| import Element.WithContext exposing (..)
          ^^^^^^^^^^^^^^^^^^^
I checked the "dependencies" and "source-directories" listed in your elm.json,
but I cannot find it! Maybe it is a typo for one of these names?

Element.WithContext.Font
Element.WithContext.Input
Element.WithContext.Border
Element.Font

Hint: If it is not a typo, check the "dependencies" and "source-directories" of
your elm.json to make sure all the packages you need are listed there!

DESIRED BEHAVIOR:

Compile the examples without errors.

csaltos commented 3 years ago

I realize the whole simpleView code just require an update to the new version with Elm UI with context ... here the pull request fixing that -> https://github.com/rakutentech/r10/pull/12

Once again, thank you for r10, it's very useful and nice !!