Issue with SharePoint SPFx webparts

Hi all,

I am new to Cursor but have gone through a few tutorials to learn the basics. I also have only basic knowledge of coding. Usually I can modify small parts of existing code to make small changes.

I am attempting to use Cursor to create a new SPFx webpart to be used on SharePoint Online. I got the idea from a You Tube video on the subject from “Academy 365” (https://www.youtube.com/watch?v=9dbxtH6-IKM&t=347s).

In the video the web part worked with no issue from just a user story and acceptance criteria. I used the exact same user story and acceptance criteria and after Cursor went through it’s process, found and resolved its own issues, the web part was created.

When the web part was added to SharePoint Apps and then added to a page, all that was displayed for the new web part was a generic “Welcome to SharePoint Framework” similiar to this (https://learn.microsoft.com/en-us/sharepoint/dev/images/sp-workbench-helloworld-wp.png).

I have gone back to cursor a number of times to explain the resulting web part issue and it suggests a number of fixes, completes the fixes then asks me to re-deploy. I have gone through these many times and started from scratch a number of times, all with the same result.

One behaviour I saw was that Cursor would sometimes thinkk that February or April was todays date (the actual date was early June 2025). This believe this caused it to think the latest NodeJS version was v18. I have tried using the suggested v18 and also telling cursor to check the latest version of NodeJS on their website(V22 LTS). I also asked Cursor to check all versions were compatible before running anything and it seemed to do these steps successfully.

Appologies for the long post but I have tried a number of ideas to figure this issue out myself, before going to the forum.

Any help or tips would be greatly aprreciated!

Cheers!