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
Add note for using yarn if using webpacker #582
Conversation
Hey @mlodato517, TravisBuddy Request Identifier: d0ec44b0-f818-11ea-8f9f-a900ee46d44b |
Thanks for the PR Since it's "optional step for installation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should cover all common package managers not just yarn
(even though I use yarn
)
README.md
Outdated
If you're using `webpacker`, you may need to add the dependencies to your client with: | ||
|
||
``` | ||
yarn add i18n-js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Depends on your package manager
npm install i18n-js
# or
yarn add i18n-js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay! I chose yarn
since it's what webpacker
uses and you have to go through some hoops to use npm
with webpacker
but this sounds good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution |
This PR
Adds a note to the README to
yarn add i18n-js
if using webpackerWhy?
I'm not actually sure if this is the right way to handle things but I followed the README for "without asset pipeline" and then got stuck because there was no
I18n
on the client. I was pointed to this gist and after adding thei18n-js
package to the client, "everything worked".If this isn't the right advice, I'd be happy to help update it to whatever it needs to be and/or point users in the right direction if this is already documented elsewhere!