Need help with versioning #9950
              
                Unanswered
              
          
                  
                    
                      jorgenfaunaapp
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         https://stackoverflow.com/a/50822003 should work across environments.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am using yarn in my CRA app, and using the yarn version command to update my package.json version number. But I have a hard time figuring out how to load the version number from my package.json and show it in the frontend. I have looked at the following stackoverflow question:
https://stackoverflow.com/questions/45978230/get-version-number-from-package-json-in-react-redux-create-react-app
Which solution should I go for?. Getting the $npm_package_version looks promising, but I do not know how to do that in our environment on heroku.
Beta Was this translation helpful? Give feedback.
All reactions