The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Zastawny Minnix,
Thank you for checking those details. Since you are not using an external CDN and includeClientSideAssets is currently set to false, the JavaScript bundle is not being included for SharePoint-hosted deployment. This is consistent with the 404 error you found.
Please change the setting in config/package-solution.json to:
"includeClientSideAssets": true
Then rebuild and repackage the solution:
gulp clean
gulp bundle --ship
gulp package-solution --ship
Upload the newly generated .sppkg file from the sharepoint/solution folder to the App Catalog, replace the existing package, and deploy it again. After that, refresh the SharePoint page and check the Network tab to confirm that the JavaScript bundle now returns 200 instead of 404.
Microsoft’s deployment guidance shows includeClientSideAssets enabled when SharePoint is used to host the solution assets: Deploy your client-side web part to a SharePoint page.
Given that the failed request is for the JavaScript bundle and returns 404, this should resolve the issue. Please redeploy the solution and let me know whether the problem persists.