Comments (4)
I don't have a platform to reproduce this error - but I suspect it relates to the "mainModules" setting - and that elm-brunch does not recognize the main module due to the non-windows path spec. All non-main modules are skipped on first alert from brunch - since brunch at startup will send events for all files.
maybe you can try to change brunch config to:
mainModules: ["web\\static\\elm\\Chat.elm"]
and see what that does?
You could also run brunc with --debug
and see if files are detected and processed.
from elm-brunch.
Hi Mads,
Sorry for the late reply. Easter belonged to my daughter.
Changed the brunch-config.js to
elmBrunch: {
mainModules: ["web\\static\\elm\\Chat.elm"]
}
and the chat.js file is now automatically created on running
mix phoenix.server
So this seems to resolve my problem on Windows. Thanks. Now I just need to see if this works on Linux and Mac.
Regards
Rudolf
from elm-brunch.
Hi Mads,
Ok, tested on Linux, and changing the path to
elmBrunch: {
mainModules: ["web\\static\\elm\\Chat.elm"]
}
failed to compile the Chat.elm to chat.js. Is this something you would have to implement in elm-brunch, to convert the path seperators from /
to \\
on Windows?
Regards
Rudolf
from elm-brunch.
Ok, Good to hear.
The whole plugin is due for an overhaul based on the new plugin structure
brunch uses, so a general fix for this Windows / Linux path issue would go
with that release.
On Mar 29, 2016 17:26, "Rudolf Bargholz" [email protected] wrote:
Hi Mads,
Ok, tested on Linux, and changing the path to
elmBrunch: { mainModules: ["web\\static\\elm\\Chat.elm"] }
failed to compile the Chat.elm to chat.js. Is this something you
would have to implement in elm-brunch, to convert the path seperators from
/ to \ on Windows?Regards
Rudolf
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#16 (comment)
from elm-brunch.
Related Issues (20)
- New way to create Brunch plugins HOT 10
- Error running elm-brunch HOT 6
- [TypeError: Cannot read property 'split' of undefined] HOT 6
- Request: option to use use local elm binary HOT 4
- Multiple elm-package.json files HOT 2
- Request: 'merge' build strategy HOT 4
- Feature Request: 'elmx' support HOT 1
- Run tests automatically for PR
- Race condition in brunch compile HOT 2
- No color coding in terminal HOT 3
- Confused about configuration HOT 8
- relative path executablePath HOT 2
- brunch plugin build order HOT 12
- Fails in minimal test case HOT 1
- brunch build --production does not have a non-zero exit code on error HOT 12
- elm-brunch watch --server gets out of sync HOT 5
- Failing elm-make on 0.11.0 for a config that works on 0.10.0 HOT 5
- Elm 0.19 HOT 5
- Can't compile Elm file HOT 4
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 elm-brunch.