sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Workbench.html is blank

Open spcrux opened this issue 10 years ago • 21 comments

After running gulp serve, localhost:4321/temp/workbench.html is opened in default browser but it's blank.

spcrux avatar Aug 23 '16 10:08 spcrux

Client side web part does not appear automatically on the page, so you'll need to hover on the middle of the page to get + icon visible, from where you can then add your web part on the page. That should sort this one out or is your web part missing from the editor as well?

VesaJuvonen avatar Aug 23 '16 10:08 VesaJuvonen

i'm also got a blank screen because the files were not found as i said here #9 (ubuntu)

mauricionr avatar Aug 23 '16 11:08 mauricionr

For me there's nothing on the page. Not even the text "SharePoint Workbench" as shown in the screenshot in first tutorial.

spcrux avatar Aug 23 '16 12:08 spcrux

which browser? I've had issues with Edge. Chrome and IE11 works ok.

johnnliu avatar Aug 23 '16 15:08 johnnliu

Are there any errors in the developer tools console when the page loads?

iclanton avatar Aug 23 '16 17:08 iclanton

This happen on ubuntu

image

mauricionr avatar Aug 23 '16 18:08 mauricionr

So @mauricionr - the references to things like react.js should have a node_modules before them. This is what I see on windows -

http://patmill6:4321/node_modules/react/dist/react.js http://patmill6:4321/node_modules/flux/dist/Flux.js

Your picture is showing a much stranger collection of URLs, with react missing the node_modules and flux looking for them inside our module loader.

@spcrux - what configuration are you working in? linux? mac? windows? If you look at the network tab, what are the URLs that are getting errors?

patmill avatar Aug 23 '16 22:08 patmill

@patmill i just call this task gulp serve and when i switch to the browser got a blank screen with lot of 404, checkout the other image

image

mauricionr avatar Aug 23 '16 23:08 mauricionr

Same for me. I'm using Chrome workbench error

spcrux avatar Aug 24 '16 00:08 spcrux

@mauricionr @spcrux this error message of not able to find react, flux is because it didn't run one of the post install scripts. Basically here is the line that downloads and bundles react for local dev environment, which should be when yo ran:

> @microsoft/[email protected] install C:\Users\Admin\apps\helloword-webpart\node_modules\@microsoft\sp-module-loader
> node npm-install-script.js

Can you try in a new fresh project to see if you still get this error and also notice what happens during the above command?

chakkaradeep avatar Aug 24 '16 06:08 chakkaradeep

It might also mean that react, react-dom, or flux wasn't fully installed. You can try running npm install again.

iclanton avatar Aug 24 '16 07:08 iclanton

@iclanton @chakkaradeep I tried running npm install again but that didnt help. so I created a new project and it worked. Thanks everyone for the response. I think the issue can be closed unless anyone else has same issue.

spcrux avatar Aug 24 '16 08:08 spcrux

I created a new fresh project, fixed the issues as here #9 and i'm still seem a blank page with lots of 404(ubuntu)

Thanks

mauricionr avatar Aug 24 '16 11:08 mauricionr

@mauricionr: Make sure you can resolve your hostname:

$ hostname
mauricionr
$ ping mauricionr
ping: cannot resolve mauricionr: Unknown host

If your hostname cannot be resolved (like above) then check to see if the hostname is present in /etc/hosts. Once you can resolve your hostname to an IP address, everything should work.

jbristowe avatar Aug 25 '16 03:08 jbristowe

For me its ok

mauricionr avatar Nov 18 '16 20:11 mauricionr

This should be fixed now. Hence resolving.

manishgarg1 avatar Jan 30 '17 00:01 manishgarg1

Doesnt work for me. Fresh install of ALL the tools, get nothing but a blank screen

nigel-dewar avatar Jan 21 '19 01:01 nigel-dewar

@nigel-dewar - please open a new issue and provide your OS/browser details, so that we can try to build a repro for your issue. Thx.

VesaJuvonen avatar Jan 21 '19 10:01 VesaJuvonen

ah - @nigel-dewar - you had already done that. Thx.

VesaJuvonen avatar Jan 21 '19 10:01 VesaJuvonen

Hi all, I also have the same issue, my SP page also blank. See the attached emptysp

see my gulp serve gulp

node

DinethNipuna avatar Jan 24 '19 04:01 DinethNipuna