ryankang's avatar
ryankang
Frequent Visitor
4 years ago
Status:
Investigating

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's avatar
    v-cazheng-msft
    Icon for Community Support rankCommunity Support
    Status changed:
    New
    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's avatar
    ryankang
    Frequent Visitor

     

    Hi. v-cazheng-msft

     

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

     

    2) 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 😞

     

     

  • ryankang's avatar
    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's avatar
    v-yingjl
    Icon for Community Support rankCommunity 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's avatar
    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 

     

     

     

    2) 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-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's avatar
    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..

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    hey 😉

     

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

     

    Best,

    Fei