Error: Cannot find module 'gatsby-telemetry'
See original GitHub issueDescription
After the 2.29.0 update, gatsby develop
& gatsby build
throws an error stating Cannot find module 'gatsby-telemetry'
. This occurs on both CI (Github Actions) and locally. Tried a fresh install of node_modules but to no avail.
Stack trace
> dkpk@1.1.13 develop C:\Code\portfolio
> gatsby develop -H 0.0.0.0
success open and validate gatsby-configs - 0.540s
Error in
"C:\Code\portfolio\node_modules\gatsby-plugin-page-creator\gatsby-node.js":
Cannot find module 'gatsby-telemetry'
Require stack:
- C:\Code\portfolio\node_modules\gatsby-plugin-page-creator\gatsby-node.js
- C:\Code\portfolio\node_modules\gatsby\dist\bootstrap\resolve-module-exports.js
- C:\Code\portfolio\node_modules\gatsby\dist\bootstrap\load-plugins\validate.js
- C:\Code\portfolio\node_modules\gatsby\dist\bootstrap\load-plugins\load.js
- C:\Code\portfolio\node_modules\gatsby\dist\bootstrap\load-plugins\index.js
- C:\Code\portfolio\node_modules\gatsby\dist\services\initialize.js
- C:\Code\portfolio\node_modules\gatsby\dist\services\index.js
- C:\Code\portfolio\node_modules\gatsby\dist\state-machines\develop\services.js
- C:\Code\portfolio\node_modules\gatsby\dist\state-machines\develop\index.js
- C:\Code\portfolio\node_modules\gatsby\dist\commands\develop-process.js
- C:\Code\portfolio\.cache\tmp-16568-jQdwdvLPA6mq
Steps to reproduce
Unfortunately, I’m not able to reproduce the issue. I tried on Codesandbox.
Expected result
gatsby develop
& gatsby build
should succeed without errors.
Actual result
gatsby develop
& gatsby build
throws cannot find module 'gatsby-telemetry'
.
Environment
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz
Binaries:
Node: 14.15.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.9 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.9.0 - /c/Users/D. Kasi Pavan Kumar/AppData/Local/Programs/Python/Python39/python
Browsers:
Chrome: 87.0.4280.88
Edge: Spartan (44.19041.423.0), Chromium (87.0.664.60)
npmPackages:
gatsby: ^2.29.0 => 2.29.0
gatsby-image: ^2.8.0 => 2.8.0
gatsby-plugin-manifest: ^2.8.0 => 2.8.0
gatsby-plugin-offline: ^3.6.0 => 3.6.0
gatsby-plugin-react-helmet: ^3.6.0 => 3.6.0
gatsby-plugin-sass: ^2.7.0 => 2.7.0
gatsby-plugin-sharp: ^2.11.0 => 2.11.0
gatsby-plugin-sitemap: ^2.8.0 => 2.8.0
gatsby-remark-autolink-headers: ^2.7.0 => 2.7.0
gatsby-remark-copy-linked-files: ^2.6.0 => 2.6.0
gatsby-remark-images: ^3.7.1 => 3.7.1
gatsby-remark-prismjs: ^3.9.0 => 3.9.0
gatsby-remark-relative-images: ^2.0.2 => 2.0.2
gatsby-source-filesystem: ^2.7.0 => 2.7.0
gatsby-transformer-remark: ^2.12.0 => 2.12.0
gatsby-transformer-sharp: ^2.8.0 => 2.8.0
npmGlobalPackages:
gatsby-cli: 2.16.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Deploy fails - Error: Cannot find module 'gatsby-telemetry'
My build failed recently and I can't understand why. The site runs fine locally. I haven't changed any of the build settings.
Read more >gatsby-telemetry
Start using gatsby-telemetry in your project by running `npm i ... There are 25 other projects in the npm registry using gatsby-telemetry.
Read more >Cannot find module 'gatsby-cli/lib/reporter'? - Stack Overflow
It's is showing Error: Cannot find module 'gatsby-cli/lib/reporter' in command prompt when I am running gatsby develop . How can I solve it ......
Read more >Troubleshooting Common Errors
This error may be a top level Cannot resolve module 'fs' or part of a webpack error like Can't resolve 'fs' . fs...
Read more >Gatsby Changelog | 5.3.0
ES Modules (ESM) in Gatsby files; Improved error messages ... environment variable did not disable telemetry, via PR #34495; gatsby-sharp : Create more ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to clarify - above is dependency of gatsby, so in this case this means fix pulished in
gatsby@2.29.1
😉Fixed in
gatsby-plugin-page-creator@2.7.1