docz: New install fails with error: Unable to find plugin "gatsby-theme-docz".
Bug Report
Describe the bug
New install fails with error: Unable to find plugin “gatsby-theme-docz”.
A clear and concise description of what the bug is.
I am adding docz to an existing project yarn add docz@next -D
I then add an mdx file and run yarn docz dev
and it produces the error message:
UNHANDLED REJECTION Unable to find plugin “gatsby-theme-docz”. Perhaps you need to install its package?
Error: Unable to find plugin “gatsby-theme-docz”. Perhaps you need to install its package?
λ yarn docz dev
yarn run v1.13.0
$ C:\Users\riha\Documents\webui\node_modules\.bin\docz dev
info No lockfile found.
[1/4] Resolving packages...
warning @types/query-string@6.3.0: This is a stub types definition. query-string provides its own type definitions, so you do not need this installed.
error Package "check-line-coverage" refers to a non-existing file '"C:\\Users\\riha\\Documents\\webui\\.docz\\tools\\check-line-coverage"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
√ Dependencies checked!
Building app
$ gatsby develop --port 3001
success open and validate gatsby-configs - 0.139 s
ERROR
UNHANDLED REJECTION Unable to find plugin "gatsby-theme-docz". Perhaps you need to install its package?
Error: Unable to find plugin "gatsby-theme-docz". Perhaps you need to install its package?
- load.js:109 resolvePlugin
[webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:109:11
- load.js:152 processPlugin
[webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:152:20
- load.js:171 config.plugins.forEach.plugin
[webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:171:20
- Array.forEach
- load.js:170 module.exports
[webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:170:20
- index.js:58 module.exports
[webui]/[gatsby]/dist/bootstrap/load-plugins/index.js:58:19
- index.js:138 module.exports
[webui]/[gatsby]/dist/bootstrap/index.js:138:34
⠋ load plugins
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
In order to allow us to quickly reproduce you issue please include a link to a reproduction repository.
I cant do that as its for a work project…
Expected behavior
That it loads and works!
A clear and concise description of what you expected to happen…
Environment
- OS: [Windows 10]
- Node/npm version: [v10.16.3]
Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 40 (15 by maintainers)
Im closing this issue as my original bug has now been fixed, even though im now encountering separate problems which from what i can tell are related to being behind a corporate firewall.
Sooo I can confirm that gatsby installs correctly. (by using
yarn add gatsby
, i cant create a site as they do in the example as i cant clone from github at work) I followed the env setup guide you linked and reinstalled some stuff but unfortunately im still getting the same error. 😦Thanks for the help! I’ll have a look at those and remove node_modules etc… Im hoping today is the day i get this working! 😃
And please make sure to delete .docz folder too
I’m not sure why that’s happening, I couldn’t reproduce locally.
Could you remove node_modules and the .docz cache and try again ?
Some questions about your project :
Is it in a yarn or lerna workspace ?
Does it use gatsby ?