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

Rookie problem - gulp serve not running... #395

Closed
mikezimm opened this issue Oct 24, 2019 · 3 comments
Closed

Rookie problem - gulp serve not running... #395

mikezimm opened this issue Oct 24, 2019 · 3 comments

Comments

@mikezimm
Copy link
Contributor

Category

[x] Question

Version

1.15.0

Expected / Desired Behavior / Question

Not able to load the web part in local host or SPO workbench.
I think I followed instructions properly but I keep getting gulp serve not running.

Steps I followed:

  1. forked a copy of the repo
  2. opened sp-dev-fx-controls-react folder in vscode
  3. npm install
  4. npm install @pnp/spfx-controls-react@next --save
  5. tried modifying package.json per this post .
  6. gulp serve (also tried --nobrowser)
  7. did not get any errors while it was building.
  8. got error message below.
  9. then also tried updating the package-lock.json file with the same thing.
  10. Just to be sure I didn't have a PC issue, I pulled up another project, gulp served it this project loaded and worked just fine.

Observed Behavior

When refreshing the workbench on my site, I got this error message:
Your web part will not appear in the toolbox. Please make sure "gulp serve" is running in a web part project. Please refresh the page once "gulp serve" is running.

Thanks for any guidance in what I missed!

@ghost
Copy link

ghost commented Oct 24, 2019

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Oct 24, 2019
@AJIXuMuK
Copy link
Collaborator

Hi @mikezimm
May it be related to this one?

@mikezimm
Copy link
Contributor Author

Hi @AJIXuMuK , Thanks! That did work!

More specifically to summarize:
I had the dev entry in package.json to be this (last line set NODE....):

  "scripts": {
    "build": "gulp bundle",
    "clean": "gulp clean",
    "test": "gulp test",
    "dev" : "set NODE_NO_HTTP2=1&& gulp serve"
  },

Then to run I had to type
npm run dev

All works! Thanks again for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants