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

Not Returning Version Number in Production Mode #181

Closed
stanleyowen opened this issue May 26, 2021 · 2 comments
Closed

Not Returning Version Number in Production Mode #181

stanleyowen opened this issue May 26, 2021 · 2 comments
Assignees
Labels
bug Something isn't working dependencies fixed

Comments

@stanleyowen
Copy link
Owner

Describe the bug
When I run the app locally in my machine, which is in development mode, it will return the version of the app, which is located in package.json. However, when I run it in production mode, it will return $npm_package_version instead of the version of the app.

Expected behavior
Returns the version number of the application in both development and production mode.

Screenshots
Expected:
image
Output:
image

Desktop (please complete the following information):

  • OS: Windows 10 OS Version 2009 (Build 19042.985)
  • Browser Chrome
  • Version 90.0.4430.212
@stanleyowen
Copy link
Owner Author

stanleyowen commented May 26, 2021

Hi, I found that it hasn't been solved fully, it still returns %REACT_APP_VERSION% instead of version number.
Not Returning Version Number in Production Mode

@stanleyowen stanleyowen reopened this May 26, 2021
@stanleyowen
Copy link
Owner Author

May this facebook/create-react-app#2466 (comment) will help to solve this issue by installing cross-env dependency.

stanleyowen added a commit that referenced this issue May 27, 2021
Added cross-env Dependency
mongoose dependency to 5.12.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies fixed
Projects
None yet
Development

No branches or pull requests

1 participant