ramandeep-singh-1983 / ngx-powerbi

TypeScript library for embedding Power BI assets (reports/dashboards/tiles) in your application. This TypeScript library is built on top of the official powerbi-client library provided by Microsoft.
MIT License
36 stars 22 forks source link

Uncaught TypeError: Object(...) is not a function #33

Open bbesase opened 4 years ago

bbesase commented 4 years ago

Hello! Thanks for the library support on this :)

When following your documentation (specifically for method #3) step for step. I keep getting this error in the console:

ngx-powerbi.js:264 Uncaught TypeError: Object(...) is not a function at ngx-powerbi.js:264 at Module../node_modules/ngx-powerbi/fesm5/ngx-powerbi.js (ngx-powerbi.js:266) at __webpack_require__ (bootstrap:78) at Module../src/app/app.component.ts (main.js:130) at __webpack_require__ (bootstrap:78) at Module../src/app/app.module.ts (app.component.ts:10) at __webpack_require__ (bootstrap:78) at Module../src/main.ts (main.ts:1) at __webpack_require__ (bootstrap:78) at Object.0 (main.ts:12)

Heres my package.json file for versions:

"dependencies": { "@angular/animations": "~7.0.0", "@angular/common": "~7.0.0", "@angular/compiler": "~7.0.0", "@angular/core": "~7.0.0", "@angular/forms": "~7.0.0", "@angular/http": "~7.0.0", "@angular/platform-browser": "~7.0.0", "@angular/platform-browser-dynamic": "~7.0.0", "@angular/router": "~7.0.0", "angular2-powerbi": "^0.1.1", "core-js": "^2.5.4", "ngx-powerbi": "^3.0.0", "powerbi-client": "^2.14.0", "powerbi-models": "^1.4.0", "rxjs": "~6.3.3", "zone.js": "~0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "~0.10.0", "@angular/cli": "~7.0.5", "@angular/compiler-cli": "~7.0.0", "@angular/language-service": "~7.0.0", "@types/node": "~8.9.4", "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.0.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.1.6" }

Would you have any idea why this be? I"m not sure what info you need so if you need anymore information just let me know and I will supply it.

Thanks!

ramandeep-singh-1983 commented 4 years ago

Sorry for the late reply, i just saw this. Will try to reproduce this. Meanwhile, can you try the library in a new Angular9+ app?