GithubHelp home page GithubHelp logo

Comments (6)

dhh avatar dhh commented on August 11, 2024 2

For now, we skip missing pins instead of dying.

from importmap-rails.

leehericks avatar leehericks commented on August 11, 2024

Clearly and understandably there is currently a name mismatch as looking in the rails source code yields action_cable.js, but even correcting the name throws up an error about the assets not being precompiled, and running rails assets:precompile also doesn’t link these files.

from importmap-rails.

dhh avatar dhh commented on August 11, 2024

Yeah, this relies on a ESM compilation that's only present in rails/main at the moment. Will look at something to make it compatible with released rails.

from importmap-rails.

dhh avatar dhh commented on August 11, 2024

I'd say actually that the easiest way to proceed if you want to play with this already, though, is to get on rails/main. Expect a fair amount of churn until all this settles!

from importmap-rails.

leehericks avatar leehericks commented on August 11, 2024

I may have jumped the gun as this is a semi-production app with organization-wide use from October but I have struggled incredibly trying to get ActiveStorage direct upload working via the rails guide instructions, possibly because I'm missing UJS? But the activestorage.js looks independent and feature complete. Was hoping this new JavaScript architecture might fix my problems with that regard.

from importmap-rails.

dhh avatar dhh commented on August 11, 2024

There are plenty of production apps running off rails/main, but yeah, probably wouldn't use that approach as a way to route around a bug or misconfiguration with AS πŸ˜„. Especially since there's likely to be considerable churn to how the importmap approach works before it's ready for shipping.

from importmap-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.