Comments (6)
For now, we skip missing pins instead of dying.
from importmap-rails.
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.
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.
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.
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.
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)
- files ending in `_index.js` have `index` replaced with an empty string HOT 3
- Why do certain pins disappear in production? HOT 2
- Unpin command causing net error HOT 3
- Confusing message on 'update'
- Unable to unpin HOT 1
- Persistent 404 error when pinning HOT 11
- Package works when pinned from JSPM but not when downloaded HOT 2
- Break in iOS 16.2 when upgrading from 1.2.3 to 2.0.1 HOT 4
- turbo:load event not fired anymore in test environment after upgrade from 1.2.3 to 2.0.1 HOT 3
- Feature suggestion: optional `process.env` polyfill
- Multiple importmaps HOT 6
- Importmap update removes pins via http HOT 1
- importmap pin/update removes preload: false
- ga.jspm.io never updates HOT 3
- ./bin/importmap outdated command fails with undefined method `dig' for an instance of String HOT 6
- Add option to `bin/importmap pin URL` to create direct/remote link without downloading
- Option to 're-sync' vendor folder HOT 2
- How to add jquery in importmaps rails 7 HOT 2
- `update` does not update a package even when `outdated` shows the new version HOT 1
- Some file are missing / Not included HOT 1
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 importmap-rails.