run build to see the error. If the type import is changed to come from the ts file everything works pnpm build