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

SPFx gulp serve issue in workbench.html #4297

Closed
3 tasks
dimportfolio opened this issue Jul 15, 2019 · 10 comments
Closed
3 tasks

SPFx gulp serve issue in workbench.html #4297

dimportfolio opened this issue Jul 15, 2019 · 10 comments
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:tooling Category: Development tooling Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP.

Comments

@dimportfolio
Copy link

Category

  • [x ] Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

Desired behavior is to open up workbench and see the hello world application

Observed Behavior

Observed behavior is it runs into

Steps to Reproduce

I followed the documentation on setting up a development environment and proceeded to the hello world application.

Additional information

I have attached the requested console output of running GULP trust-dev-cert && serve. Please let me know if you're able to view the output & if it is what you need.

https://imgur.com/a/KVDHomA

Steps I took to remedy the issue but failed:

I attempted to follow the troubleshooting steps from the Microsoft documentation but I don't believe it applies to my situation. The NODE version I am running is 10.16. I am using 0365 and followed the steps of setting up the Office 365 tenant & Development Environment.

_Troubleshooting
SPFx Development for SharePoint Server 2016
SharePoint Server 2016 uses the SharePoint Framework (SPFx) v1.1. Around this the time of the v1.1 release, NodeJS was transitioning from NodeJS v6.x to v8.x. In this update, NodeJS introduced a change where the default changed from HTTP1 to HTTP2. For some, this caused issues with SPFx. A later version of SPFx resolved these issues, but those who are still working with SPFx v1.1 (such as those working with SharePoint Server 2016) may run into issues.

To resolve this, set the following environment variable to instruct NodeJS to use HTTP1 instead of the default HTTP2: NODE_NO_HTTP2=1.

For more information, refer to issue #1002.

Unable to Trust the Self-signed Development Certificate
In some cases, executing the command gulp trust-dev-cert, does not have the desired effect of trusting the self-signed development certificate on your machine. In rare cases such as these, you may need to delete a hidden folder that's generated in your profile folder. Locate & delete the folder /.gcb-serve-data and then try to trust the self-signed development certificate again._

@msft-github-bot
Copy link
Collaborator

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

@msft-github-bot msft-github-bot added the Needs: Triage 🔍 Awaiting categorization and initial review. label Jul 15, 2019
@andrewconnell
Copy link
Collaborator

Please elaborate on this this:

Observed Behavior

Observed behavior is it runs into

What exactly is / is not happening. Please provide screenshots, error messages, etc.

Also please provide context... SPFx version installed, browser tested, etc.

@andrewconnell andrewconnell added area:tooling Category: Development tooling Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. area:spfx Category: SharePoint Framework (not extensions related) and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Jul 15, 2019
@dimportfolio
Copy link
Author

When I run "gulp serve", I expect the workbench on sharepoint to run on my chrome browser. I'm not sure what SPFx version is installed. Everything I've done up to this point is the following

Getting Started:
Created an app catalog site
Created an developer site collection
Created a team site

  • This was all done in the office 365 SharePoint Admin Center-

Set up Development Environment
Installed NodeJS LTS v10.16
Installed Visual Studio Code
Installed Yeoman & Gulp
Installed Yeoman SharePoint Generator

Then I proceeded to create our first client side webpart

@msft-github-bot msft-github-bot added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jul 15, 2019
@andrewconnell
Copy link
Collaborator

Need versions... please run npm list -g --depth=0.

@dimportfolio said:

When I run "gulp serve", I expect the workbench on sharepoint to run on my chrome browser.

But what is happening... what do you see when you run gulp serve? Errors/no errors in the console, nothing in the browser, etc? Provide details on what is happening... you say you expect the above to happen, as do I... but if it isn't, what is happening.

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. labels Jul 15, 2019
@dimportfolio
Copy link
Author

@microsoft/[email protected]
[email protected]
[email protected]

there is no errors in my console, also gulp serve seems to run fine. I've attached an imgur in the initial post that has a image of what the gulp serve outputs.

I also attached here an imgur of the browser page.

https://imgur.com/a/LpV4Jtt

@msft-github-bot msft-github-bot added Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. and removed Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. labels Jul 15, 2019
@chartnado-dave-haas
Copy link

I tried to get Node LTS 10.16 to go as well. No dice. I kept getting the SSL error (referenced in the above imgur url).

Setting the environment variable NODE_NO_HTTP2=1 did nothing to alleviate the problem.
Toasting the c:\Users$me.gcb-serve-data folder and running gulp trust-dev-cert did nothing either.

I had to go back to Node 8.16 to get it to work.

@andrewconnell
Copy link
Collaborator

@DaveHaasPowderSoftware Node.js 10.* should work with SPFx v1.8.x... what version are you running?

@dimportfolio In the past, when all else failed I suggest uninstalling Node completely, reboot, verify it's not installed (by running node -v & npm list -g --depth=0... both should fail... if not, you haven't uninstalled everything), and try installing everything again & re-trusting the cert from an administrative command prompt.

@andrewconnell andrewconnell added Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. and removed Needs: Attention 👋 Original poster responded to request for feedback, awaiting attention from Microsoft / community. labels Jul 29, 2019
@msft-github-bot msft-github-bot added the no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP. label Aug 5, 2019
@msft-github-bot
Copy link
Collaborator

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

@msft-github-bot
Copy link
Collaborator

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

@msft-github-bot
Copy link
Collaborator

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:tooling Category: Development tooling Needs: Author Feedback Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days. no-recent-activity Stale issue due to lack of activity. Closed after 7 days with no activity by OP.
Projects
None yet
Development

No branches or pull requests

4 participants