spfx

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

人走茶凉 提交于 2019-12-11 03:22:42
问题 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 "3a000c20-ed9a-44db-a466-db477bfc0132" (BuilderWebPart). Original error: ***Failed to load entry point from component "3a000c20-ed9a-44db-a466-db477bfc0132" (BuilderWebPart). Original error: Error loading https://component-id.invalid/3a000c20-ed9a

Creating All Day Event failing

帅比萌擦擦* 提交于 2019-12-11 03:15:30
问题 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": calendarEvent.Description, }, "start": { "dateTime": calendarEvent.EventDate, "timeZone": moment.tz.guess(), }, "end": { "dateTime": calendarEvent.EndDate, "timeZone": moment.tz.guess(), }, "location": { "displayName": !calendarEvent || !calendarEvent.Location ? "No Location": calendarEvent

SPFx Webpart - node_modules/@types/ [prop types] and [react] index.d.ts: loads of “error TS1005” on gulp build

我的未来我决定 提交于 2019-12-11 00:53:38
问题 So Im building a spfx webpart of which one feature is to display link previews. I used this library for the task. I had to change the version of the package "styled-components" and update my "react"(16.4.18) and "react-dom"(16.0.9) in order for it to work. After making these changes and running gulp build I receive the follwing List of errors: [10:21:13] [tsc] typescript version: 2.4.2 [10:21:17] Error - [tsc] node_modules/@types/prop-types/index.d.ts(27,38): error TS1005: '=' expected. [10