Giter Site home page Giter Site logo

Comments (2)

dhh avatar dhh commented on June 30, 2024

You sure you checked in those files into git? Almost looks like vendor/javascript might not be under version control, so the files only exist locally?

from importmap-rails.

scott8803 avatar scott8803 commented on June 30, 2024

Did a full folder copy rather than a git pull. Are you saying the bin/importmap json will not list pinned import maps (under env production) if the url is invalid? That seems odd. Would be better to still list them and indicate a missing/invalid url.

In the production logs when the page is generate it does say there is a missing path

W, [2024-01-03T16:12:22.889593 #82460]  WARN -- : [543fb42e-5175-4bdd-b4e2-584650283f4b] Importmap skipped missing path: uikit/dist/js/uikit
W, [2024-01-03T16:12:22.889656 #82460]  WARN -- : [543fb42e-5175-4bdd-b4e2-584650283f4b] Importmap skipped missing path: uikit/dist/js/uikit-icons

I'm pulling the files from node_modules (the folder in question is file copied rather than yarn loaded on production; maybe that's it)

This is the manifest.js

//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js

//= link_tree ../builds

//= link_directory ../../../node_modules/uikit/dist/js .js

This is the node _modules directory:
Screenshot 2024-01-03 at 10 03 04 AM

And this shows the public asset directory. Fingerprints seemed to match up to the urls in the development env json listing. Assets were created with RAILS_ENV=production rails assets:precompile
Screenshot 2024-01-03 at 10 04 08 AM

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.