elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

elm-make commands fails on Freebsd while working on MacOS #161

Closed jwazne closed 6 years ago

jwazne commented 7 years ago

Hello,

I've having a problem to compile ELM code on Freebsd server while everything is OK on my laptop (MacOS Sierra).

Here's the command that fails on freebsd : elm-make --yes --output ../static/vendor/app.js App.elm

The error message is :

I cannot find module 'Users.Model'.

Module 'Types' is trying to import it.

Potential problems could be: * Misspelled the module name * Need to add a source directory or new dependency to elm-package.json

Application structure looks like this: image

users/Model.elm starts like this: module Users.Model exposing (..)

Types.elm starts like this: module Types exposing (..)

import Users.Model exposing (..)

elm-package.json like this: { "version": "1.0.0", "summary": "helpful summary of your project, less than 80 characters", "repository": "https://github.com/user/project.git", "license": "BSD3", "source-directories": [ "." ], "exposed-modules": [], "dependencies": { ... }, "elm-version": "0.18.0 <= v < 0.19.0" }

I've installed ELM on freebsd using the following commands: as root $ pkg install ghc hs-cabal-install Change Path to PATH="$PATH:/usr/local/elm/Elm-Platform/0.18/.cabal-sandbox/bin" $ curl https://raw.githubusercontent.com/elm-lang/elm-platform/master/installers/BuildFromSource.hs > BuildFromSource.hs $ runhaskell BuildFromSource.hs 0.18

Any help would be appreciated.

Thks !

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

jwazne commented 6 years ago

It was a lowercase/uppercase issue. Folders must have the same case as the modules name.

See https://groups.google.com/forum/#!topic/elm-discuss/EG0zlUJH2Eo where solution was found.