无法运行docz开发服务器:在“ ... \ node_modules \ gatsby-theme-docz \ gatsby-config.js”中找不到声明的“ gatsby-plugin-emotion”插件

时间:2019-12-06 11:16:38

标签: javascript reactjs yarn

嗨,我刚刚安装docz来记录我的React项目,并在安装后通过

运行
yarn docz dev

我遇到以下错误

Couldn't find the "gatsby-plugin-emotion" plugin declared in "...\node_modules\gatsby-theme-docz\gatsby-config.js".

enter image description here

感谢您的帮助

在package.json中添加的脚本

 "scripts": {
"start": "webpack-dev-server --mode development --config config/webpack.base.config.js --open --hot --history-api-fallback --env.PLATFORM=local --env.VERSION=stag",
"prebuild": "rm -rf dist",
"build": "webpack --mode production --config config/webpack.prod.config.js --env.PLATFORM=production --env.VERSION=stag --progress",
"build:server": "yarn build && node server",
"storybook": "start-storybook -p 9001 -c .storybook",
"lint": "eslint  src/",
"lint:write": "eslint src/ --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage --colors",
"prettier": "prettier --write src/**/*.js",
"docz:dev": "docz dev",
"docz:build": "docz build",
"docz:serve": "docz build && docz serve"
 },
我添加的

docz依赖项

  "dependencies": {
     "docz": "^2.2.0-alpha.7",

0 个答案:

没有答案