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 'cross-env' to dependencies #241
Conversation
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.
Excellent, thanks for fixing that! We really should be adding any dependency that is necessary for running the project into the main dependencies.
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.
I'm not sure we need to make cross-env
a dependency
since it is only used for development. Setting environment variables with cross-env
can only work when you run the app using the development server. Once you run yarn build
and create a production build, the app is turned into static files and there are no more "environment variables" - all variables get hard-coded in the source code. I think the problem in issue #233 is related to something else. I had that problem once, but then pulled down a clean branch and ran yarn install && yarn start
and the app worked without problems.
The issue that came up #233 was related to something else, but that issue lead to this PR as well. Michael pulled down and ran the repo and had issues, which based on repo he linked, is why I made the adjustment here. Did you get a chance to look at what he linked in that issue? |
Yes, I looked through the thread linked in #233. It looks like that is the intended behavior and that |
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.
Gonna go ahead and approve to unblock.
Ok thanks. We can update in the future, and look into this a little more for sure. |
Changes
cross-env
to a dependency.Purpose
This will allow
[yarn start]
to run correctly with no errors.Learning
Please visit the comments from Issue #233 .
Testing
[yarn start]
and make sure there are no errors.Screenshot
References #233