Questions tagged [spfx-tooling]

Technical questions about the development tooling for the SharePoint Framework client-side development model.

Filter by
Sorted by
Tagged with
5
votes
3answers
4k views

SharePoint Framework web parts - dynamic properties pane

I was playing around with the SharePoint framework and I was trying to get the web part to load SharePoint lists via a promise. First I noticed that await and async are not supported (probably due to ...
1
vote
4answers
2k views

Unable to test client side webpart hosted in SharePoint

While attempting Tutorial 1: HelloWorld WebPart, Step 6: Preview web part in SharePoint.I am having an issue that is preventing the SharePoint hosted workbench from loading the webpart. After ...
1
vote
2answers
2k views

Error trying to reference an image in SharePoint Framework web part using react

when I'm trying to reference an image in my react component in the render method as follows. const leaderImgSrc = require('myimage.jpg'); and then in the TSX <img src={leaderImgSrc} alt='an ...
1
vote
1answer
708 views

Sharepoint workbench page with NoComponentId error

So I did basic hello webpart setting and ran gulp which shown me SP framework local page. Now i wanted to see this in sharepoint context , so I copied workbench.aspx from https://github.com/...
0
votes
1answer
91 views

Minify Plain CSS From “src” Folder to “lib” and/or “dist” Folder

I have plain.css at /src. It would be nice if webpack or gulp would minify and copy plain.css to /lib and become available as an external resource set in config. Similar to how .js modules can be ...
0
votes
1answer
289 views

Access denied in Workbench.aspx

I downloaded the workbench.aspx file and uploaded to office 365 SharePoint Online Developer site under "Documents" document library. When I try to open the same, I page does not load correctly (I do ...
0
votes
1answer
183 views

Link between gulp and sharepoint online

Love the new SPFx capabilities. Just set up my dev environment, started gulp serve, and HelloWorld rendered on the localhost workbench. Made a code change, saved the file, gulp serve re-published ...
3
votes
1answer
90 views

Can I get a trace of TypeScript statements executed in a SharePoint SPFx client web part?

Is there a way with gulp serve to get a trace of TypeScript statements that are executed in a SPFx client application ?
0
votes
0answers
2k views

cannot find module (typescript)

I am running an easy Sharepoint Framework project in Visual Studio Code: I have this structure: My files are as follows: ComplexCalculator.ts export class ComplexCalculator { public sqr(v1: ...
2
votes
2answers
533 views

Can a user update a SharePoint list using SPFx without the user having access to the list?

In C# you could allow users to access a SharePoint list they have no access to by using SPSecurity.RunWithElevatedPrivileges(delegate () .....etc. Is there a way achieving the same functionality ...
1
vote
1answer
349 views

Would multiple SPFx webparts on page load duplicate dependencies?

If I have an SPFx webpart and that webpart uses these dependencies: jQuery jQueryUI Angular LoDash Then I have another SPFx webpart and that one uses: jQuery jQueryUI React Moment If I load ...
1
vote
1answer
178 views

React.js code structure question

I have a question which hope you might be able to help me with. If I was to create a custom class class 'SPList', and on my componentDidMount function or the constructor. I was to call a REST ...
4
votes
2answers
760 views

How does Workbench.aspx in Office365 get local files?

I'm sure this is a really simple answer but I can't see the connection. Essentially I'm playing with the SPFx tutorials and I just uploaded the workbench.aspx to my shared documents and the hello ...
3
votes
1answer
62 views

After drop two of the SharePoint SPFx Framework came out on Friday. I get error cannot find module gulp-core-build

After drop two of the SharePoint SPFx Framework came out on Friday. (https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-Drop-2) ... I followed the instructions to upgrade my webpart so:- ...
10
votes
3answers
452 views

Does an SPFx webpart run on Gulp or Node as web server?

Reading the SPFx documentation I find it difficult to understand which service/tool/framework handles requests as a web server. From documentation both Node and Gulp can be used as a web server during ...
1
vote
0answers
117 views

TS5005 When trying to run a SharePoint SPFx webpart from Visual Studio 2015

I get an error when I hit F5 when running a SharePoint SPFx web part in Visual Studio 2015 SP3 but everything works successfully when I use Visual Studio Code :- Error TS5055 Cannot write file '...
3
votes
1answer
2k views

Passing a property to a child component

I am continuing to learn about the various frameworks we can use with SPFX. I have stumbled upon a problem, which according to various websites out there it should work, so I'm sure the problem is a ...
6
votes
2answers
892 views

Reverse engineer TypeScript output back to source code?

Maintaining SharePoint solutions without access to source code can be time consuming. Especially if you have to extract a .wsp from a farm, rename it to .cab and start looking into output files as XML ...
8
votes
2answers
333 views

SPFx: disabling console traces (by SPFx libraries)

Am a big fan of the console, and apply it to the max (and I hate it, IE does not do colors in the console) My console looks like this: Now the SPFx output is cluttering up my precious console, with ...
0
votes
1answer
351 views

Errors when running gulp serve when using SharePoint Framework Office UI Fabric Components tutorial

Should I need to worry about these lint errors in Using gulp serve in the SharePoint Framework Office UI Fabric Components tutorial? https://github.com/SharePoint/sp-dev-docs/wiki/Using-Office-UI-...
4
votes
1answer
3k views

Adding onClick event to a React Web Part

I want to add a simple onclick function, but having trouble doing it. I have looked online, and have tried multiple ways - such as binding it - this.update.bind(this)} within the html string, etc ...
3
votes
2answers
909 views

Tutorial 4 of SharePoint SPFx Tutorials: Error configuring web part to load from CDN

i have followed HelloWorld, Deploy to CDN and until "Configuring web part to load from CDN" everything worked; i have updated the "cdnBasePath" in "write-manifests.json" as described, and continued ...
1
vote
1answer
184 views

Trying SPFx Tutorial 5 without VS2015 installed

I have set up my Windows 10 Machine for SPFx development. I am using Visual Studio Code and not Visual Studio itself. NB When you install Python (Setting up your machine) it needs .NET 2.0 to be ...
1
vote
1answer
225 views

Tutorial 4 of SharePoint SPFx Tutorials Azure Instructions Unclear

The Instructions in Tutorial 4 of the SharePoint SPFx Tutorials are unclear in terms of what is required from Azure. Instructions for creating Storage account name, Blob Container Name and Storage ...
4
votes
4answers
781 views

SharePoint Framework Workbench Error - the requested operation is part of an experimental feature that is not supported in the current environment

I've just followed the instructions for the hello world sample for the SharePoint Framework Preview and I'm getting the error in the title when attempting to run the workbench on my sharepoint dev ...
1
vote
1answer
43 views

Can I change the colours gulp serve uses? [closed]

I am having difficulty reading the deep red, purple and green and deep blue that gulp serve uses in the node.js console. Can I change these colours ? I have tried using the properties of the node....
4
votes
1answer
266 views

Missing workaround in SPFx JQuery WebPart

In the SPFx JQuery tutorial there is this instruction :- For drop 1, there is a workaround needed when loading css files (later on in this tutorial we will show you how). For now, you need to include ...
1
vote
1answer
153 views

SPFx remove (per project) node_modules and typings directory

I am working on smaller, but faster SSD drives, so every Megabyte hurts. We are also used to zipping up entire projects and mailing it to developers costing half my rate If I run the command yo @...
5
votes
1answer
269 views

Error: Cannot find module 'gulp-webserver'

While spinning up the SharePoint framework, getting the mentioned error instead of running the gulp task which I got scaffold from the Yeoman.