angular-cropperjs icon indicating copy to clipboard operation
angular-cropperjs copied to clipboard

TypeError: Object(...) is not a function in ionic 3.

Open TsongSteven opened this issue 7 years ago • 3 comments

The import of following is giving me TypeError: Object(...) is not a function Error.

app.module.ts

import { AngularCropperjsModule } from 'angular-cropperjs';

home.ts

import { CropperComponent } from 'angular-cropperjs';

If I comment both then i get no error, but if I leave un comment either one then I get the mentioned error.

AngularCropperjsService<@http://localhost:8100/build/vendor.js:76641:66 @http://localhost:8100/build/vendor.js:76631:46 webpack_require@http://localhost:8100/build/vendor.js:55:12 219@http://localhost:8100/build/main.js:124:76 webpack_require@http://localhost:8100/build/vendor.js:55:12 196@http://localhost:8100/build/main.js:106:70 webpack_require@http://localhost:8100/build/vendor.js:55:12 webpackJsonpCallback@http://localhost:8100/build/vendor.js:26:23 @http://localhost:8100/build/main.js:1:1

Ionic Framework: 3.9.2 Ionic App Scripts: 3.2.1 Angular Core: 5.2.11 Angular Compiler CLI: 5.2.11 Node: 8.10.0 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

TsongSteven avatar Jan 05 '19 06:01 TsongSteven

@TsongSteven I think you should install version 0.1.5 that suitable for Angular 5 witch Ionic 3 uses it:

npm install [email protected] --save

doroudi avatar Jan 24 '19 08:01 doroudi

Drag is broken, when using v.0.1.5

josephvoxone avatar Mar 28 '19 12:03 josephvoxone

@TsongSteven Did you solve it?

BluebambooSRL avatar Jun 26 '19 21:06 BluebambooSRL