You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// taken from "/readme.md"importvalidateVat,{ViesValidationResponse}from'validate-vat-ts';constconsumer=async()=>{try{constvalidationInfo: ViesValidationResponse=awaitvalidateVat(CountryCodes.Germany,"12323");}catch(e){console.log(e);}}
Running the block of code leads to
TypeError: __vite_ssr_import_5__.default is not a function
Some logging shows that validateVat import is an Object and not a function.
In the docs
validateVat
is used as a functionRunning the block of code leads to
Some logging shows that
validateVat
import is an Object and not a function.output:
to actually use the function as intended, extract the default function from said object
output
VITE v5.0.11
NODE v21.5.0
The text was updated successfully, but these errors were encountered: