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

Start evergreen app locally #541

Closed
jtanya34 opened this issue Apr 25, 2019 · 10 comments
Closed

Start evergreen app locally #541

jtanya34 opened this issue Apr 25, 2019 · 10 comments

Comments

@jtanya34
Copy link
Contributor

jtanya34 commented Apr 25, 2019

Hello!! I am a newbie with react and I am having issue running evergreen locally.
running npm run dev for gatsby develop show this err:docs@1.0.0 dev: gatsby develop. Is it something because of gatsby version?
I could run storybook locally, but how should I run evergreen?
Thanks!!
Screen Shot 2019-04-26 at 10 50 03 AM

@mshwery
Copy link
Contributor

mshwery commented May 3, 2019

When developing locally you should be able to run yarn dev

@mshwery
Copy link
Contributor

mshwery commented May 3, 2019

You'll also notice there is no package-lock.json because we use yarn on this project for development, so it's possible there are some pinned dependencies in the yarn.lock that wont be respected when you npm install

@jtanya34
Copy link
Contributor Author

jtanya34 commented May 7, 2019

I did with yarn dev now, but files in docs/public folder are creating error.
Screen Shot 2019-05-07 at 12 25 17 PM

@mshwery
Copy link
Contributor

mshwery commented May 7, 2019

Can you provide full steps to reproduce the error and information about your OS/system?

Did you rm -rf node_modules && yarn install before running any other yarn commands?

@jtanya34
Copy link
Contributor Author

jtanya34 commented May 7, 2019

I am using macOS Sierra, I am in master branch and docs folder :

  1. rm -rf node_modules
  2. yarn install
  3. yarn dev which gives this error.

@mshwery
Copy link
Contributor

mshwery commented May 7, 2019

Screen Shot 2019-05-07 at 4 07 18 PM

@jtanya34
Copy link
Contributor Author

jtanya34 commented May 8, 2019

During yarn install it gives some dependencies warning ,can that be a issue.
Now again cloned the repo and performed following steps:

  1. cd docs
  2. yarn install
    which give these warnings:

Screen Shot 2019-05-08 at 10 55 03 AM

  1. yarn dev
    which gives these error:

Screen Shot 2019-05-08 at 11 06 38 AM

Screen Shot 2019-05-08 at 10 55 03 AM

webpack version:webpack@4.16.5
yarn version : 1.15.2
Node :v11.14.0

@mshwery
Copy link
Contributor

mshwery commented May 8, 2019

Ah, have you built the main lib yet? I think the docs rely on evergreen being built first. You can see where module resolution fails for you looking for "esm" - that's ok if the output formats.

yarn && yarn build
cd docs && yarn && yarn dev

@jtanya34
Copy link
Contributor Author

jtanya34 commented May 8, 2019

ohh , that worked! Thanks.
Now I hope I find some good first issue to contribute.

@mshwery
Copy link
Contributor

mshwery commented May 8, 2019

Yay! Alright, closing this out. Your first contribution could always be updating the readme about running the docs after running the build :)

@mshwery mshwery closed this as completed May 8, 2019
jtanya34 added a commit to jtanya34/evergreen that referenced this issue May 9, 2019
Closed Issue segmentio#541: Adding steps to run docs locally.
This was referenced May 9, 2019
jtanya34 added a commit to jtanya34/evergreen that referenced this issue May 9, 2019
Closed Issue segmentio#541: Steps to run docs locally.
jtanya34 added a commit to jtanya34/evergreen that referenced this issue May 9, 2019
Closed Issue segmentio#541: Steps to Run docs in local.
mshwery pushed a commit that referenced this issue May 20, 2019
Closed Issue #541: Steps to Run docs in local.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants