Npm package installed but still goes on error.

Raphael, it happened to me too. It looks like a strange bug. My solution: move the “import” up or down a few lines, Publish and try it out.