Git Product home page Git Product logo

Comments (3)

philopon avatar philopon commented on July 20, 2024

Thanks for your question.

source directory of elm must set in elm-package.json file.

You should update your elm-package.json to

...
    "source-directories": [
        "src"
    ],
...

and gulp.src provide main module to gulp-elm, so you can modify it to

...
  return gulp.src('src/Main.elm')
...

I'll update examples soon. Thanks!

from gulp-elm.

kasbah avatar kasbah commented on July 20, 2024

There is a mistake in the example.

diff --git a/example/elm/test2.elm b/example/elm/test2.elm
index d6060e4..26b026b 100644
--- a/example/elm/test2.elm
+++ b/example/elm/test2.elm
@@ -1,6 +1,6 @@
 module Test2 where

-import Foo
+import Test1
 import Graphics.Element exposing (Element)

 main : Element

Not sure how you ever got that to compile. Even with the fix:

[20:36:56] Using gulpfile /tmp/gulp-elm/example/gulpfile.js
[20:36:56] Starting 'init'...
[20:36:56] Finished 'init' after 240 ms
[20:36:56] Starting 'multi'...
[20:36:56] Starting 'pipe'...
[20:36:56] Starting 'string'...

/tmp/gulp-elm/example/node_modules/gulp-elm/node_modules/q/q.js:155
                throw e;
                      ^
Error: Error when searching for modules imported by module 'Test2':
    Could not find module 'Test1'

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

My elm-make is at 0.1.2 in case it makes a difference.

from gulp-elm.

philopon avatar philopon commented on July 20, 2024

Oops, sorry. I forgot add Foo module. I fixed it. Please check it again.

from gulp-elm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.