Hello All
An issue which happened to me today (and I have seen this several times in the past too!) is when you deploy a web part to SharePoint you receive the following error on your SharePoint page:
“Failed to load URL ‘https://localhost:4321/lib/webparts….”

Also when you are running gulp serve it will load you web part fine because what your web part is trying to do is pull all styling from the localhost.
The fix
The fix for this is very simple, when you are packing your web part you need to add “–ship” to the end of you gulp package-solution. Using the ship parameter will package the web part without it relying on local styling. So when packaging your solution for deployment your full command should be:
gulp package-solution –ship
I hope this has helped you fix the issue! SPFx can be a pain sometimes 😛