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

Cannot find module "@ms/sp-telemetry" on SPFx unittest

Open veeramanx opened this issue 8 years ago • 3 comments

I am writing unit test for SPFx web part. when i run gulp test command i am getting the following error "Cannot find module "@ms/sp-telemetry"". i am using '@microsoft/sp-http' in the react component.

I have the following versions "dependencies": { "@microsoft/decorators": "^1.5.0", "@microsoft/sp-application-base": "^1.5.0", "@microsoft/sp-client-preview": "^1.5.0", "@microsoft/sp-core-library": "^1.5.0", "@microsoft/sp-http": "^1.5.0", "@microsoft/sp-lodash-subset": "^1.5.0", "@microsoft/sp-office-ui-fabric-core": "~1.4.1", "@microsoft/sp-webpart-base": "^1.5.0",

"devDependencies": { "@microsoft/sp-build-web": "^1.5.0", "@microsoft/sp-module-interfaces": "^1.5.0", "@microsoft/sp-webpart-workbench": "^1.5.0", "@types/chai": ">=3.4.34 <3.6.0", "@types/enzyme": "^2.8.12", "@types/mocha": ">=2.2.33 <2.6.0", "@types/sinon": "^1.16.36",

Please do let me know if any additional information required. Thanks,

veeramanx avatar Jun 12 '18 08:06 veeramanx

Unfortunately not enough information for repro. We would need to understand used versions, what unit test framework is used etc. Closing as not actionable for our side.

VesaJuvonen avatar Jun 12 '18 10:06 VesaJuvonen

basically same problem as this. Still not fixed after nearly a year. https://github.com/SharePoint/sp-dev-docs/issues/526

devinprejean avatar Jul 06 '18 15:07 devinprejean

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