# Lack of \*.elmi file when 0.19.1 elm version is used

**URL:** <https://discourse.elm-lang.org/t/lack-of-elmi-file-when-0-19-1-elm-version-is-used/9831>\
**Category:** Learn\
**Created:** [June 7, 2024, 10:39am UTC](https://discourse.elm-lang.org/t/lack-of-elmi-file-when-0-19-1-elm-version-is-used/9831 "2024-06-07T10:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kczulko](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/kczulko/32/5236_2.png) [@kczulko](https://discourse.elm-lang.org/u/kczulko)\
**Post date:** [June 7, 2024, 10:39am UTC](https://discourse.elm-lang.org/t/lack-of-elmi-file-when-0-19-1-elm-version-is-used/9831/1 "2024-06-07T10:39:18Z")

</div>

Hello,

I have a following issue:

I am trying to upgrade elm version of [rules\_elm](https://github.com/kczulko/rules_elm) from 0.19.0 to 0.19.1. However, I’ve found that for the following file (Spec.elm):

```auto
module Spec exposing(..)

import Expect
import Test exposing (..)
import Lib exposing(plus2)
import Main

additionTests = describe "Addition"
    [ test "two plus two equals four" <|
        \_ -> (2 + 2) |> Expect.equal 4
    , test "three plus four equals seven" <|
        \_ -> (3 + 4) |> Expect.equal 7
    , test "plus2 adds two to the argument" <|
        \_ -> plus2 2 |> Expect.equal 4
    , test "This specific Main module function always returns 5" <|
        \_ -> Main.someFunctionAlwaysReturning5 |> Expect.equal 5
    ]

```

the command `elm make --output=unused.js Spec.elm` returns an error and doesn’t produce `elm-stuff/0.19.1/Spec.elmi` file which is further used by the test runner. I am pretty sure that it is related with this [Compiling a program with no "main" creates no output · Issue #1807 · elm/compiler · GitHub](https://github.com/elm/compiler/issues/1807#issuecomment-513358390) as I am getting the **Case 5** output when trying to call aforementioned `elm make` command. When elm 0.19.0 is used, Spec.elmi is being created with no issues at all.

Can I workaround this and get somehow Spec.elmi file for elm 0.19.1?

Thanks in advance,  
Karol

---

<div class="post-metadata">

**Author:** ![lydell](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lydell/32/178_2.png) [@lydell](https://discourse.elm-lang.org/u/lydell)\
**Post date:** [June 7, 2024, 9:12pm UTC](https://discourse.elm-lang.org/t/lack-of-elmi-file-when-0-19-1-elm-version-is-used/9831/2 "2024-06-07T21:12:40Z")

</div>

Note that elm-test does not read the .elmi files anymore since [version 0.19.1-revision5](https://github.com/rtfeldman/node-test-runner/blob/master/CHANGELOG.md#0191-revision5---2020-01-28).

---

<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:** [June 17, 2024, 9:13pm UTC](https://discourse.elm-lang.org/t/lack-of-elmi-file-when-0-19-1-elm-version-is-used/9831/3 "2024-06-17T21:13:26Z")

</div>

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