Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TsongSteven opened this issue Jan 5, 2019 · 3 comments
Open

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

TsongSteven opened this issue Jan 5, 2019 · 3 comments

Comments

@TsongSteven
Copy link

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

@doroudi
Copy link

doroudi commented Jan 24, 2019

@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

@josephvoxone
Copy link

Drag is broken, when using v.0.1.5

@BluebambooSRL
Copy link

@TsongSteven Did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants