Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node and webpack upgrade using shakapacker #5308

Merged
merged 4 commits into from
Aug 21, 2023
Merged

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Aug 10, 2023

Fixes #5304

Webpacker has been deprecated in favor of other approaches to JS in Rails 7. Shakapacker is a continuation of webpacker that has support for webpack 5. The switch to webpack 5 also required explicitly including polyfills. This successfully compiles assets, but I haven't tried seeing if everything is actually working in a browser.

@cjcolvar
Copy link
Member Author

I had to do a docker-compose pull to get the newer image which resolved the bundling issue I was seeing.

@Dananji
Copy link
Contributor

Dananji commented Aug 17, 2023

I tested Collections, Timeliner, SME, and some other generic JS code. It all worked well expect for uploading a collection poster image giving me the error 'There was a problem storing the poster image.', which works in avalon-dev.

I faced a similar issue with Ramp we saw on avalon-dev where it cannot find the component on item page.
Screenshot from 2023-08-17 11-32-13

@cjcolvar
Copy link
Member Author

Testing locally, I didn't have that issue with uploading a poster, but I did see that same error with Ramp. I think I fixed the underlying issue and was able to get Ramp to not throw that error, but it still wasn't loading for me because I think the item I was testing with was bad.

Copy link
Contributor

@Dananji Dananji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Item view page works now 🎉
The poster image issue could be something to do with my local setup.

@cjcolvar cjcolvar merged commit 268e0d7 into develop Aug 21, 2023
@cjcolvar cjcolvar deleted the node_webpack_upgrade branch August 21, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants