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

Compile error #90

Closed nahcyrret closed 1 year ago

nahcyrret commented 1 year ago

Compiled with problems: × ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts [tsl] ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts(680,34) TS1005: '?' expected. ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts [tsl] ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts(681,17) TS1005: ':' expected. ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts [tsl] ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts(682,17) TS1005: ',' expected. ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts [tsl] ERROR in C:\GitHub\powerbi-client-react-master\demo\node_modules\@types\node\ts4.8\test.d.ts(685,34) TS1005: '?' expected. ...

I got the above errors after running "npm run demo". Are there really that syntax errors in test.d.ts? How to fix this problem?

KotanaSai21 commented 1 year ago

Hello @nahcyrret , Please Upgrade the demo package.json to latest typescript and ts-loader versions.

"ts-loader": "^9.4.2",
"typescript": "^4.8.4",

Feel free to reach out if you have any other queries.

nahcyrret commented 1 year ago

image

I still got the errors after updating the versions as shown.

KotanaSai21 commented 1 year ago

These are also the same version issues and should be fixed. Try reinstalling the node-modules. If still facing the same issue, please provide more context to repro the issue.

nahcyrret commented 1 year ago

I just installed the Latest LTS Version: 18.15.0 (includes npm 9.5.0) for Windows from https://nodejs.org/en/download