Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

power bi api javascript 'TypeError: Cannot read properties of undefined (reading 'get')'

if i run 'npm start' in javascript, i see the 'TypeError: Cannot read properties of undefined (reading 'get')'

i don't know what is the reason for this error.

i run this same code in 2021, there wasn't any error in vscode. 

please let me know the changes of the sample api code in power bi.

 

Status: Investigating

Hi @ryankang,

 

May I know whether you will see any report load issue when you get this error? Are you embedding your report with embed token?

 

Best Regards,

Community Support Team _ Caiyun

Comments
v-cazheng-msft
Community Support
Status changed to: Investigating

Hi @ryankang,

 

May I know whether you will see any report load issue when you get this error? Are you embedding your report with embed token?

 

Best Regards,

Community Support Team _ Caiyun

ryankang
Frequent Visitor

 

Hi. @v-cazheng-msft

 

1) when i type 'npx nodemon app.js' 
    working well without any error 

ryankang_1-1654744127784.png

 

2) and when i open localhost:5300 in the chrome browser 

also working.

ryankang_2-1654744177739.png

 

3) but screen is changed to white without any changes few seconds later.

ryankang_3-1654744253664.png

 

4) so i back to the vscode, i can see this code error.. 

ryankang_4-1654744307752.png

 

 

5) and i don't know exactly how to embed token to my code.
if you know the way, please let me know the reference..

i followed this address : 

https://docs.microsoft.com/ko-kr/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...

i've been looking for the answer for 2 days.. it's so anoying 😞

 

 

ryankang
Frequent Visitor

And additionally i got PPU license from MS temporily for 60 days.

If it would be reason for this case of error? 

 

I need to get license PPU without freeware license?

v-yingjl
Community Support

Hi @ryankang ,

You have posted the same issue on the community, to make it more clear, have merged them to the first case, thanks.

 

Best Regards,
Community Support Team _ Yingjie Li

ryankang
Frequent Visitor

@v-cazheng-msft @v-yingjl 

(i merged the postings to the first one according to the opinion i got, i was hoping to get answer ASAP 😞
i've been checking the postings every minute 😞 ..)

hi.

 

if i run 'npm start' in javascript, i see the 'TypeError: Cannot read properties of undefined (reading 'get')'

i don't know what is the reason for this error.

i run this same code in 2021, there wasn't any error in vscode. 

please let me know the changes of the sample api code in power bi.

 

1) when i type 'npx nodemon app.js' 
    working well without any error 

ryankang_0-1655102715311.png

 

 

 

2) and when i open localhost:5300 in the chrome browser 

also working.

ryankang_1-1655102715313.png

 

 

 

3) but screen is changed to white without any changes few seconds later.

ryankang_2-1655102714694.png

 

 

 

4) so i back to the vscode, i can see this code error.. 

ryankang_3-1655102715372.png

 

 

 

 

5) and i don't know exactly how to embed token to my code.
if you know the way, please let me know the reference..

i followed this address : 

https://docs.microsoft.com/ko-kr/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...

And additionally i got PPU license from MS temporily for 60 days.

If it would be reason for this case of error? 

 

I need to get license PPU without freeware license?

 

also i need 2nd authentication when i login to MS power bi, it would be the reason?.. 

so confusing 

ryankang_4-1655102713953.png

 

ryankang
Frequent Visitor

additionally, i get this error from web site.. 

 i updated license to Pro but i can't make my code working correctly..

ryankang_1-1655179660428.png

 

Anonymous
Not applicable

hey 😉

 

I followed the same tutorial as you and now got the same issues. Did you fix it already?

 

Best,

Fei