Code Monkey home page Code Monkey logo

Comments (5)

jwhitley avatar jwhitley commented on August 10, 2024

Two things: your paths spec is the identity function; it does nothing for you so I'd remove it. Likewise, you shouldn't specify baseUrl in your requirejs.yml. The gem provides the correct value for this parameter internally.

Thus your requirejs.yml should only be:

modules:
  - name: lookup

Have you tried building locally? (e.g. via rake assets:precompile) Does that build succeed?

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

To clarify, I'm fairly certain that it's the explicit baseUrl that's causing your problems. I've altered the title of this issue to reflect that the gem should ignore baseUrl in the config and emit a warning if it is present.

from requirejs-rails.

olivernn avatar olivernn commented on August 10, 2024

Yep that worked great, thanks!

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

Glad that worked out; thanks for the report!

Reopening to track better handling & warning re: baseUrl in requirejs.yml.

from requirejs-rails.

jwhitley avatar jwhitley commented on August 10, 2024

Fixed en passant while working on #48. See commit 6b4c964.

from requirejs-rails.

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.