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 "/_/9e35e2fa.js" for ::1 at 2023-08-28 09:56:58 -0400
ActionController::RoutingError (No route matches [GET] "/_/9e35e2fa.js"):
When I look in the network tab of the developer tools, I see that the initiator of this file is yaml-c3a2c347f0aeaabd61d2e4bfa7779882d85af0a207269ec0727fd8c981c75a4a.js
To add this npm package, I did the following:
npm install yaml./bin/importmap pin yaml --downloadrestart the server (development)
Am I missing a step?
I'm using Rails 7.0.7 and Ruby 3.1.2