Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
veeramanx opened this issue Jun 12, 2018 · 3 comments
Closed

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

veeramanx opened this issue Jun 12, 2018 · 3 comments

Comments

@veeramanx
Copy link

veeramanx commented Jun 12, 2018

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,

@VesaJuvonen
Copy link
Contributor

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.

@devinprejean
Copy link

basically same problem as this. Still not fixed after nearly a year. #526

@msft-github-bot
Copy link
Collaborator

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

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants