Netlify cli error when importing imagekit npm package

I am able to replicate this locally, so it is possibly suggestive of a bug in Netlify CLI. You might like to file a bug report on the Netlify CLI repository