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

Kendo UI React.js version 16.2 with Sharepoint framework

Open JishaRajesh opened this issue 8 years ago • 5 comments

Expected or Desired Behavior

CX wants to know how to use the latest version of react.js 16.2 with their SPfx web part.

Observed Behavior

When using the react.js 15.6.2 by default available with Sharpoint framework, cx is unable to use the latest features of kendo. So he would like to upgrade to 16.2. But he is unable to do it.

. If he does not use the latest version of react.js, he gets an error in gulp ,which says cannot find module “ @microsoft/sp-loader”.

When using the newest version ,there is a 404 (f12 ) which says “ failed to load URL ‘/node_module/react/dist/react.js’” file not found SPloader error, as the folder structure mapped is different .

Steps to Reproduce

When generate SharePoint online web parts using yo @microsoft/sharepoint command and select React framework, similar to steps listed in this link on how to use office UI react components. After generating the web part the default package.json dependencies related to react are react 15.6.2, react-Dom 15.6.2, @types/react 15.6.6 and @types/react-Dom 15.5.6.

To change react dependencies we run npm install –save react@latest and nmp install –save react-Dom@latest, finally after updating to latest react we see the error File not found SPloader error.

Submission Guidelines

Please let us know the appropriate way to upgrade the version and use the spfx. we had suggested using https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/basics/add-an-external-library cx replied We didn’t try the second solution you have suggested yet, which details on using external libraries. In the article it suggests how to load scrips using CDN. This could be one solution, but not ideal at all since we have to keep two versions of react, one through node_modules installed when generating SharePoint web parts and the other through CDN to latest react framework in config.js file. If this is the only solution available we will try to use it. Any examples, or links to resources would help a lot.

JishaRajesh avatar Mar 24 '18 01:03 JishaRajesh

Right now we are not supporting so new version. Unfortunately, you will need to wait until SPFx is using the matching version of react before this works.

VesaJuvonen avatar Mar 27 '18 17:03 VesaJuvonen

Hello Vesa,

Thank you for the response. So do you mean to say that this is not achievable. Cx cannot use React 16.2 version with SPfx. Please confirm

Regards, Jisha

From: Vesa Juvonen [email protected] Sent: Tuesday, March 27, 2018 12:34 PM To: SharePoint/sp-dev-docs [email protected] Cc: Jisha Rajesh [email protected]; Author [email protected] Subject: Re: [SharePoint/sp-dev-docs] Kendo UI React.js version 16.2 with Sharepoint framework (#1535)

Right now we are not supporting so new version. Unfortunately, you will need to wait until SPFx is using the matching version of react before this works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F1535%23issuecomment-376610032&data=02%7C01%7Cjiraje%40microsoft.com%7C0e6bd8b49931451b8b4508d59408ed6b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636577688415929743&sdata=47ULkI9qw4wqf7k0r%2BWtGR3EH0hhCKQnsnvfM6RBTBM%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAj-UUQnEjuRja0W_NUZrOOzimMEahe2yks5tingHgaJpZM4S5i3c&data=02%7C01%7Cjiraje%40microsoft.com%7C0e6bd8b49931451b8b4508d59408ed6b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636577688415929743&sdata=syMRx97SuM6ccGyXDqMHd6g3lxxhF17mL67xiwUI678%3D&reserved=0.

JishaRajesh avatar Mar 27 '18 17:03 JishaRajesh

This is not currently doable in SharePoint Online until the natively used React is updated to a newer version.

VesaJuvonen avatar Mar 27 '18 18:03 VesaJuvonen

Thank you Vesa, Are there any plans to upgrade or any expected timeline that we can share with customer.

From: Vesa Juvonen [email protected] Sent: Tuesday, March 27, 2018 1:42 PM To: SharePoint/sp-dev-docs [email protected] Cc: Jisha Rajesh [email protected]; Author [email protected] Subject: Re: [SharePoint/sp-dev-docs] Kendo UI React.js version 16.2 with Sharepoint framework (#1535)

This is not currently doable in SharePoint Online until the natively used React is updated to a newer version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-docs%2Fissues%2F1535%23issuecomment-376631828&data=02%7C01%7Cjiraje%40microsoft.com%7C35c3887d54744ab36ef008d59412630a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636577729047475017&sdata=asYWnNeZwHS5e0FkMFMlVUJOir0AZqzMTF8ZCVnRGvY%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAj-UUeyZa9-O44jiA0BcviaQVLfyv-zAks5tioflgaJpZM4S5i3c&data=02%7C01%7Cjiraje%40microsoft.com%7C35c3887d54744ab36ef008d59412630a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636577729047475017&sdata=38ybm%2BTAR99QXwDLreaG82R60apHdqAdIE4wHkR63xU%3D&reserved=0.

JishaRajesh avatar Mar 27 '18 21:03 JishaRajesh

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

msft-github-bot avatar Jan 28 '20 06:01 msft-github-bot