Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
114 views

The documented way to use omnies:datatables-bundle does not seem compatible with asset mapper and importmap. Getting jQuery to wor k with asset mapper at all is a bit of a trick, and there doesn't ...
ccandreva's user avatar
1 vote
0 answers
132 views

I have the following within my importmap.rb pin 'core-js/stable', to: 'core-js--stable.js' # @3.42.0 However, when I try to import that package into my application.js: import 'core-js/stable'; this ...
Neil Middleton's user avatar
0 votes
0 answers
56 views

I have a symfony project with the assetmapper package active. There is an app.js which imports: import './styles/app.css'; import Wood from "./wood.js"; The gernerated importmap looks like ...
Polrov's user avatar
  • 53
0 votes
2 answers
138 views

I'm facing an issue when trying to install the FilePond library using Symfony's importmap system. I attempted to add FilePond to my project by running php bin/console importmap:require filepond (or ...
QuenK's user avatar
  • 1
2 votes
1 answer
398 views

Basically I'm trying to load React from an external source using an import map (needed because multiple JS files use React). We have an issue where it loads when you first access the page, but if you ...
Dan's user avatar
  • 321
1 vote
2 answers
307 views

In my Rails 8 app I'm using Importmap and I would like to use date-fns in an appropriate manner given only one functionality and a couple of locales from that JS library are needed. Below is what I ...
user502052's user avatar
  • 15.3k
4 votes
2 answers
304 views

I'm having trouble using importmap-rails to manage npm packages. I would ideally like it to function like yarn where it keeps track of versions, dependencies and downloads everything for you with a ...
dthegnome's user avatar
  • 133
1 vote
0 answers
984 views

I'm trying to use import maps with React and Vite. I have a React Vite application called app1 with the following vite.config.ts: import { defineConfig } from "vite"; import react from "...
Alef Duarte's user avatar
0 votes
1 answer
203 views

I’m using Rails 7 with importmaps to manage JavaScript modules. My app works fine in development, but in production, some JavaScript files are failing to load with the following error in the console: ...
ddgd's user avatar
  • 1,737
0 votes
0 answers
86 views

I have an application on Rails 7.1.3.4, upgraded from Rails 6. I am in the process of converting to using import maps for Javascript that the application uses. I am not using Turbo and Stimulus in ...
Carl Yerkovich's user avatar
1 vote
0 answers
96 views

I created an app that uses tailwind, stimulus and slim-select. In development everything works fine, but in production my import maps break for some reason and the Asset Pipeline breaks for my ...
BingoYoan's user avatar
0 votes
1 answer
139 views

I'm currently debugging a local Node.js solution and I was wondering, is it possible to add an importmap to Node.js so I can use Import with resource name? My import map: <script type="...
SteinTech's user avatar
  • 4,144
2 votes
1 answer
906 views

ActiveAdmin v4 supports importmaps. How can I add custom JS to ActiveAdmin via importmaps? E.g. https://github.com/ankane/chartkick as asked on GitHub
thisismydesign's user avatar
4 votes
2 answers
576 views

Using Supabase Langchain Edge Functions, I cannot seem to force resolve the same langchain/core package version using import_map scopes. I'm trying to import: langchain/ @langchain/core @langchain/...
user3211306's user avatar
3 votes
1 answer
727 views

I'm unable to get stimulus and importmaps to read files from an app engine. The current project I've been tasked to do involves me upgrading all legacy engines to use importmaps and stimulus JS. The ...
Dave D's user avatar
  • 948
0 votes
1 answer
74 views

I'm trying to import interact.js with an importmap, but I get the error: Uncaught SyntaxError: Unexpected identifier 'interactjs'. My importmap: <script type="importmap"> { ...
CarlBateman's user avatar
0 votes
0 answers
272 views

I'm currently moving out from webpacker to use importmaps and sprockets on Rails 7 but I can't get the config right and get these errors in console: Uncaught TypeError: Failed to resolve module ...
Marwann's user avatar
  • 162
1 vote
1 answer
124 views

I am adding some extra CSS/JS files into my vendor folder: vendor/my_theme/css/app.css vendor/my_theme/css/bundle.css vendor/my_theme/js/app.js They belong to an external theme I am integrating. I ...
fguillen's user avatar
  • 39.5k
0 votes
0 answers
801 views

I am installing a new Symfony 7.1 / PHP 8.3.8 app with asset mapper and stimulus bundle and I am encountering issues with making stimulus functional : symfony new my_project_directory --version="...
Teka B's user avatar
  • 16
3 votes
1 answer
1k views

Rails 7 with Import Maps and CSS Bundling: Assets Not Served from /builds Directory I'm working on a Rails 7 application where I'm using Import Maps for JavaScript and CSS Bundling via Yarn instead of ...
bonhoffer's user avatar
  • 1,473
1 vote
2 answers
497 views

I have a rails 7 app and I'm trying to add hotwire functionality. I am getting an error with pinning stimulus and importing it in application.js importmap.rb pin "application" pin "@...
Fred Willmore's user avatar
1 vote
0 answers
450 views

I am working on adding javascript handling to a rails 7 app. I want to use import maps to import external libraries for turbo and stimulus. The current issue I'm having trouble with is that ...
Fred Willmore's user avatar
1 vote
1 answer
375 views

In my Rails 7 project I have been using importmap for importing JS modules. here is the config: # config/importmap pin "application", preload: true pin "@hotwired/turbo-rails", to:...
rony36's user avatar
  • 3,369
0 votes
1 answer
474 views

I'm trying to use a environment variable inside the importmap that is used for single-spa configuration: <% if (isLocal) { %> <script type="systemjs-importmap"> { &...
Step's user avatar
  • 149
0 votes
1 answer
86 views

The error that I am getting, in the Heroku server logs is this: ActionController::RoutingError (No route matches [GET] "/assets/modules/seat_builder.js") This error is popping up for every ...
TheCodeSommelier's user avatar
0 votes
1 answer
147 views

In a rails 7.1 project I'm using importmap to load lightbox2 importmap.rb pin "lightbox2", to: "https://ga.jspm.io/npm:[email protected]/dist/js/lightbox.js" This works but none of ...
user avatar
2 votes
0 answers
313 views

I am using Ruby on Rails with Import map but I got this error on Firefox 115 / Windows 8.1. Dev console error Uncaught TypeError: The specifier alpinejs was a bare specifier, but was not remapped to ...
sparkle's user avatar
  • 7,418
-1 votes
1 answer
379 views

I am trying to move away from yarn, npm and webpacker to importmaps. I clearly did a lot of things right cause some of my JavaScript is loading. Some of my Stimulus controllers are not being ...
Lisbeth Purrucker's user avatar
2 votes
0 answers
303 views

below follows the code sample that should work out-of-the-box by Microsoft documentation: https://github.com/microsoft/powerbi-client-vue-js I would like to integrate the module powerbi-client-vue-js ...
fero's user avatar
  • 548
1 vote
1 answer
318 views

I'm trying to use the javascript library Lightbox2 with a rails 7.1 application. config/importmap.rb: pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js" pin &...
user avatar
0 votes
0 answers
244 views

I would like to use Prism in my Rails 7 project to highlight code in specific pages. To make that: I downloaded the Development version of Prism for Markup + HTML + ..., CSS, C-like, and JavaScript ...
user502052's user avatar
  • 15.3k
2 votes
1 answer
784 views

I am working on a Rails 7.1.2 application with Ruby 3.2.2 and facing an intermittent problem with Google Maps loading. The map sometimes loads in Firefox, but rarely in Brave. There seems to be an ...
Bruno Costanzo's user avatar
1 vote
1 answer
371 views

I'm using Importmap for Rails 7 implementing the JavaScript Module Pattern and I'm getting errors related to loading of custom helpers JS files in the production environment. My app/javascript has a ...
user502052's user avatar
  • 15.3k
0 votes
1 answer
729 views

2 micro frontends and root application deployed in S3 bucket through AWS cloudfront distribution. in my s3 bucket files have stored in following structure app1_281 (react micro frontend) app2_13 (...
Achi_BB's user avatar
  • 41
1 vote
1 answer
2k views

I am trying to convert my rails 7 application using sprockets to use import maps because I was having issues using turbo and hotwire. I am not using bootstrap or tailwind. We are using materialize. ...
Jeff S's user avatar
  • 21
3 votes
1 answer
1k views

I started a new rails project and am attempting to get tailwind running on it. I'd like to be able to have the tailwind css files separated for organizational reasons. Relevant gems in my Gemfile: gem ...
nzifnab's user avatar
  • 16.2k
2 votes
1 answer
204 views

I'm trying to add HightlightJS # importmap.rb pin "highlightjs", to: "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" // application.js import ...
Will's user avatar
  • 4,742
1 vote
0 answers
151 views

I am trying to install ts-select2 in a Rails 7 App. I ran: ./bin/importmap pin ts-select2 And it added this line to config/importmap.rb pin "ts-select2", to: "https://ga.jspm.io/npm:ts-...
Mark Robinson's user avatar
1 vote
1 answer
422 views

I am using importmap with a downloaded version of tinymce in a rails 7.1 engine. I am failing to get the editor to display and the browser console shows the following error Uncaught ReferenceError:...
jamesc's user avatar
  • 12.9k
1 vote
1 answer
4k views

I have a npm module with a package.json at my folder ./module When I import that in a file and run it with deno, it throws an error 'error: Is a directory (os error 21)'. Likely this is because my ...
pubkey's user avatar
  • 612
1 vote
1 answer
265 views

in config/importmap.rb: pin "maplibre-gl", to: "https://ga.jspm.io/npm:[email protected]/dist/maplibre-gl.js" However, trying to use this library: import * as maplibregl from &...
renen's user avatar
  • 451
1 vote
1 answer
2k views

Mature app updating to Rails 7.0.7, Ruby 3.1.2, adding stimulus-rails using the installer, with importmap-rails, turbo-rails and sprockets-rails already installed. No custom Stimulus controllers yet, ...
nimmolo's user avatar
  • 627
-1 votes
1 answer
234 views

Ruby: 3.1.2, Rails 6.1 Trying to add gem importmap-rails to an existing Rails 6.1 app. The gem bundles, but neither the rake importmap:install task nor the gem helper method <%= ...
nimmolo's user avatar
  • 627
1 vote
1 answer
1k views

I'm trying to upgrade a working legacy app to Rails 7, from Rails 6.1. I want to use Hotwire, so I added gem turbo-rails. Ruby 3.1.2 zeitwerk no webpacker sprockets-rails no modern JS yet app passes ...
nimmolo's user avatar
  • 627
1 vote
1 answer
207 views

I'm trying to import the yaml npm package into a Rails 7 app; but, I appear to be missing a step. When I attempt to load a page that imports this package, I get this 404: Started GET "/_/...
Zack's user avatar
  • 6,704
0 votes
1 answer
157 views

I have in my project folder: index.html src resources node_modules index.html: <!DOCTYPE html> <html> <head> <title>WebGPU App</title> <meta ...
Spiri's user avatar
  • 439
2 votes
1 answer
715 views

As in older versions of rails, in production, we used to precompile our assets first so that performance can be better while serving assets from public. But in rails 7, as default configuration says ...
Muhammad Ans's user avatar
1 vote
0 answers
269 views

I am new to rails 7 and dont know where to put my custom js files. Now I know the importmaps are used to get third part javascript libraries via cdn's and we include in our application.js file. But ...
Muhammad Ans's user avatar
0 votes
1 answer
2k views

"Import maps are a new way for web pages to control the behavior of JavaScript imports, potentially enabling you to ditch your build system." I could not find any explanation of how it ...
mattsmith5's user avatar
  • 1,327
1 vote
0 answers
478 views

I have an issue on all my servers and localhost by getting CORS error when getting js files from CDN. It occurs today and nothing was changed in the codebase before. Yesterday everything works fine. ...
mike's user avatar
  • 51