Comments (3)
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.
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.
Oops, sorry. I forgot add Foo module. I fixed it. Please check it again.
from gulp-elm.
Related Issues (20)
- Colours don't display with Elm 0.17 HOT 2
- Elm output mixes with gulp output HOT 5
- Error when passing zero files to gulp-elm HOT 1
- Add option to specify output file HOT 3
- Should support --debug mode HOT 2
- Support: Debug doesn't seem to be working HOT 1
- Sometimes fails with `openFile: dones not exist` when watched HOT 3
- does not work when you don't add elm dependency manually HOT 1
- exception doesn't get caught when watching HOT 1
- elm-package.json must exist in root directory HOT 4
- `cwd` options doesn't work when using `elm-make` from `node_modules\.bin\`
- compile hangs for a few minutes before firing proc.on('close') HOT 8
- Enable Travis, Appveyor, and Greenkeeper HOT 1
- Doesn't work on 0.19 HOT 5
- Source glob fails in 0.8.0 HOT 3
- An in-range update of ansi-colors is breaking the build 🚨 HOT 5
- An in-range update of jsdom is breaking the build 🚨 HOT 2
- An in-range update of through2 is breaking the build 🚨 HOT 3
- Optimize flag not working HOT 3
- Request - Setup with multiple elm.json files using glob patterns HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-elm.