CDLUC3 / dmptool

DMPTool version of the DMPRoadmap codebase
https://dmptool.org
MIT License
57 stars 13 forks source link

API broken by recent switch to JSBundling #469

Closed briri closed 7 months ago

briri commented 1 year ago

The API has its own /layouts/application.rb which is still referencing the old javascript_pack_tag helper method that was provided by Webpacker.

We need to update it to match the current /app/views/layouts/application.rb.

The error was:

Completed 500 Internal Server Error in 12135ms (ActiveRecord: 5.3ms | Allocations: 1751193)
F, [2023-05-01T07:48:02.114934 #9085] FATAL -- : [23306353-aff8-43e0-b48a-d793f47e2565]   
[23306353-aff8-43e0-b48a-d793f47e2565] ActionView::Template::Error (undefined method `javascript_pack_tag' for #<ActionView::Base:0x000000056edf70>
Did you mean?  javascript_path
               javascript_tag):
[23306353-aff8-43e0-b48a-d793f47e2565]      9:   <%= stylesheet_link_tag(stylesheet_manifest_file) %>
[23306353-aff8-43e0-b48a-d793f47e2565]     10:   <%= stylesheet_link_tag "doorkeeper/application" %>
[23306353-aff8-43e0-b48a-d793f47e2565]     11: 
[23306353-aff8-43e0-b48a-d793f47e2565]     12:   <%= javascript_pack_tag "application", "data-turbolinks-track": "reload" %>
[23306353-aff8-43e0-b48a-d793f47e2565]     13:   <%= csrf_meta_tags %>
[23306353-aff8-43e0-b48a-d793f47e2565]     14: 
[23306353-aff8-43e0-b48a-d793f47e2565]     15:   <%# DMPTool Customization to pull in our CSS and JS %>