sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Issue upgrading to SPFx 1.5.0

Open petkir opened this issue 8 years ago • 5 comments

Category

  • [X] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

after package upgrade to 1.5.0 i got errors like this Error - typescript - node_modules/@microsoft/sp-application-base/dist/index-internal.d.ts(xx,yy): error TS2307: Cannot find module '@ms/odsp-utilities-bundle'. Error - typescript - node_modules/@microsoft/sp-extension-base/dist/index-internal.d.ts(59,31): error TS2304: Cannot find name 'GraphHttpClient'. Error - typescript - node_modules/@microsoft/sp-http/dist/index-internal.d.ts(180,22): error TS2420: Class 'HttpClientResponse' incorrectly implements interface 'Response'. Error - typescript - node_modules/@microsoft/sp-page-context/dist/index-internal.d.ts(134,23): error TS2304: Cannot find name 'AzureActiveDirectoryInfo'. Error - typescript - node_modules/@microsoft/sp-page-context/dist/index-internal.d.ts(536,21): error TS2304: Cannot find name 'O365GroupAssociation'.

i changed my tsconfig.json file to this, and it worked as expected { "compilerOptions": { "target": "es5", "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", "jsx": "react", "declaration": true, "sourceMap": true, "experimentalDecorators": true, "skipLibCheck": true, "typeRoots": [ "./node_modules/@types", "./node_modules/@microsoft" ], "types": [ "es6-promise", "webpack-env" ], "lib": [ "es5", "dom", "es2015.collection" ] } }

Hope this helps more

petkir avatar Jun 07 '18 20:06 petkir

Had the same problem and compilation works again. Thanks!

napkin92 avatar Jun 15 '18 08:06 napkin92

Works! Thx!

havivi avatar Jul 27 '18 11:07 havivi

Helped me a lot! Thanks!

bastianjohn avatar Aug 22 '18 06:08 bastianjohn

Closing as issue appears resolved. If not, please let us know with additional details so we can reopen.

andrewconnell avatar Feb 20 '19 20:02 andrewconnell

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 27 '20 12:01 msft-github-bot