 npm run type-check is giving errors