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.
7 Comments
- v-cazheng-msft
Community Support
Status changed:NewtoInvestigatingHi 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
- ryankangFrequent Visitor
Hi. v-cazheng-msft
1) when i type 'npx nodemon app.js'
working well without any error2) and when i open localhost:5300 in the chrome browser
also working.
3) but screen is changed to white without any changes few seconds later.
4) so i back to the vscode, i can see this code error..
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-core
i've been looking for the answer for 2 days.. it's so anoying 😞 - ryankangFrequent 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?
- ryankangFrequent Visitor
(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 error2) and when i open localhost:5300 in the chrome browser
also working.
3) but screen is changed to white without any changes few seconds later.
4) so i back to the vscode, i can see this code error..
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 :
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 - ryankangFrequent Visitor
additionally, i get this error from web site..
i updated license to Pro but i can't make my code working correctly..
- AnonymousNot applicable
hey 😉
I followed the same tutorial as you and now got the same issues. Did you fix it already?
Best,
Fei