Was facing the same problem, solved it by deleting the webpart i was previously testing and running "gulp serve" again after this. Seems like sometimes running two or more different projects can generate this type of error. Hope it helps you too :)