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
I understand that this problem appears when you try to compile a TypeScript file, correct me if I'm wrong. There are differences to how modules are handled between TypeScript when compared to other bundlers like Babel or Webpack. Seems like you have a few solutions:
Option 1:
Modify your import statement to import * as Croppr from 'croppr'
Option 2:
Add the following configuration in your tsconfig.json file:
import Croppr from 'croppr';
[ts] Module '"/node_modules/croppr/index"' has no default export.
The text was updated successfully, but these errors were encountered: