Skip to content

undefined method `vite_javascript_tag' on staging environment #347

Answered by ElMassimo
rubyandcoffee asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Alexandra!

The error suggests that the TagHelpers are not available in your application.

Usually, tag helpers are loaded automatically in the railtie included in vite_rails, which should only happen if vite_rails is not being required.

For example if gem "vite_rails" is inside group :development, it would be installed locally, but it wouldn't be installed nor required in the staging environment.

Feel free to share your Gemfile.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants