Questions tagged [spfx]

The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.

975 questions
3
votes
0 answers

SharePoint Online APIs - detect NoScript (DenyAddAndCustomizePages) state?

I'm attempting to query for properties of a SharePoint Online site using the _api method in a SharePoint Framework TypeScript project (https://tenancy.sharepoint.com/sites/classic-example/_api/site) and determine if the site is a NoScript site or…
OmniFace
  • 31
  • 1
3
votes
1 answer

SPFX Development environment trouble, has anyone seen lookups.flatmap error?

I recently replaced my workstation and started to begin test the new environment, however I have not been able to successfully run: yo@microsofst/sharepoint to begin scaffolding. below is what I have set up. Node v 10.24.1 | NPM v 6.14.12 --- +--…
3
votes
2 answers

Navigate to new url from SPFX in Sharepoint online

I have a dropdown in SPFX webpart in sharepoint online. In that dropdown, onchange, I am constructing a url with # tag. E.x. https://sharepointonine/default.aspx#2349-234234-23434 I need to navigate to this new url. I am not sure how to accomplish…
user24826
  • 455
  • 8
  • 15
3
votes
0 answers

Getting The service worker navigation preload request was cancelled before 'preloadResponse' settled

I'm getting the error: The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle. When using: private…
NightTom
  • 418
  • 15
  • 37
3
votes
0 answers

Passing functions to child components

I'm creating a simple SPFX extension to manage a task list. I have created a list which gets items via REST through pnpjs. I want to be able to delete said items by clicking on a button. When I click the delete button, a modal (WarningModal) opens,…
eralardz
  • 31
  • 2
3
votes
1 answer

how to use azure cognitive search from a sharepoint online SPFx webpart

I haven't had much contact with SPFx lately, so I guess I need to study a bit, :) I want to use this NPM package here: https://www.npmjs.com/package/azure-search Into a basic new SPFx web part: The code is like this: export default class…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
3
votes
0 answers

google-maps-react this.props.google does not exist in type

I am trying to follow the example from https://github.com/fullstackreact/google-maps-react#readme and I got this error Property 'google' does not exist on type 'Readonly<{ children?: ReactNode; }> & Readonly'. The imports import *…
Random I.T
  • 121
  • 1
  • 10
3
votes
2 answers

How can enable the filter on managed metadata fields on REST API direct?

How can enable the filter on managed metadata fields label on REST API direct and fetch all the fields using the filtering of the MMS field using direct REST API?
Mariya
  • 345
  • 1
  • 2
  • 12
3
votes
1 answer

Creating All Day Event failing

I'm trying to create an All Day event: let foobar: any = { "subject": calendarEvent.Title+"v5", "body": { "contentType": "HTML", "content": calendarEvent! || !calendarEvent.Description ? "No Description":…
Holden1515
  • 659
  • 2
  • 7
  • 20
3
votes
2 answers

not proper use of react lifecycle

I have a Sharepoint Framework webpart which basically has a property side bar where I can select the Sharepoint List, and based on the selection it will render the list items from that list into an Office UI DetailsList Component. When I debug the…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
3
votes
2 answers

[SPLoaderError.loadComponentError]: ***Failed to load component

I developed a webpart in Sharepoint Framework, when I compile it with gulp build it compiles fine, however when I do gulp serve and I add the webpart to the workbench I get this error: [SPLoaderError.loadComponentError]: ***Failed to load component…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
3
votes
1 answer

Angular 5 and Sharepoint SPFX

I'm using Angular 5 with SharePoint SPFX Framework. Everything works great with multiple webparts on the page no problem but how do I include the Polyfills? I tried included in js files in the externals, doesn't work, I tried just importing all from…
Fab
  • 904
  • 2
  • 14
  • 38
2
votes
0 answers

SPFX build error - gulp build not working as expected

I have increased memory size using the below command "set NODE_OPTIONS=--max-old-space-size=216384" but no use still getting the same error
Veera Induvasi
  • 822
  • 7
  • 19
2
votes
0 answers

Facing issues while create Sharepoint lists with lookups columns using xml

I want to create two list 1) Employee details and 2) Selected Employee programatiocally using XML in SPFx. So, I have created two files for each list 1) element.xml and 2) Schema.xml. And added that files in package-solution.json. Employee details…
2
votes
1 answer
1
2
3
64 65