Coder Social home page Coder Social logo

Comments (4)

madsflensted avatar madsflensted commented on May 30, 2024

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.

rudolfb avatar rudolfb commented on May 30, 2024

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.

rudolfb avatar rudolfb commented on May 30, 2024

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.

madsflensted avatar madsflensted commented on May 30, 2024

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)

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.