microsoft / powerbi-client-react

Power BI for React which provides components and services to enabling developers to easily embed Power BI reports into their applications.
MIT License
305 stars 96 forks source link

Demo Install and Run Issues #82

Closed jmcgroar closed 1 year ago

jmcgroar commented 1 year ago

I've run into a couple of issues when installing and then running the Demo.

  1. On the install of Demo, I'm seeing 4 warnings.

_npm WARN ts-loader@7.0.5 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself. npm WARN powerbi-client-react-demo@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (nodemodules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Are these to be expected or is there some corrective action I need to take?

  1. When I run the Demo, I receive a lot (127) of compile errors on the file index.d.ts. Here is a sample:

_Compiled with problems:

ERROR in F:\Development Projects\powerbi-client-react\demo\node_modules\@types\express-serve-static-core\index.d.ts

[tsl] ERROR in F:\Development Projects\powerbi-client-react\demo\node_modules\@types\express-serve-static-core\index.d.ts(102,68) TS1110: Type expected.

ERROR in F:\Development Projects\powerbi-client-react\demo\node_modules\@types\express-serve-static-core\index.d.ts

[tsl] ERROR in F:\Development Projects\powerbi-client-react\demo\nodemodules\@types\express-serve-static-core\index.d.ts(102,77) TS1005: '}' expected.

Is this the result of a version conflict?

I'm using Visual Studio Code on Windows 10 with TSC 4.9.4 installed.

Thank you,

-Jeff

bapat-atharva commented 1 year ago

Not able to reproduce the first error, but for the second, please upgrade the demo package json to use latest typescript and ts-loader versions "ts-loader": "^9.4.2", "typescript": "^4.9.4",

jmcgroar commented 1 year ago

Atharva,

Thanks so much for responding to my issues. I will try your suggestion and update the TS-related package versions tomorrow.

I found your project very helpful. Nice work!

Thank you,

-Jeff

From: Atharva Bapat @.> Sent: Sunday, January 29, 2023 11:40 PM To: microsoft/powerbi-client-react @.> Cc: Jeff McGroary @.>; Author @.> Subject: Re: [microsoft/powerbi-client-react] Demo Install and Run Issues (Issue #82)

Not able to reproduce the first error, but for the second, please upgrade the demo package json to use latest typescript and ts-loader versions "ts-loader": "^9.4.2", "typescript": "^4.9.4",

— Reply to this email directly, view it on GitHub https://github.com/microsoft/powerbi-client-react/issues/82#issuecomment-1407989131 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBSGYPAUXJJIFILCJDRKNTWU5AY3ANCNFSM6AAAAAAUIH2QVY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ACBSGYINZUPQYH3HINBY7JLWU5AY3A5CNFSM6AAAAAAUIH2QV2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTST5Q2YW.gif Message ID: @. @.> >


This email was scanned by Bitdefender