I am not for certain, but it seems that the issue is that when we’re trying to import the stripe package it is throwing an error because stripe is written in typescript and so it throws a type error. However it still works importing into a project written in javascript, regardless of the error. To remove the error you can use // @ts-ignore above your require statement. This may be a rudimentary solution but it works.