嗨,我刚刚安装docz来记录我的React项目,并在安装后通过
运行yarn docz dev
我遇到以下错误
Couldn't find the "gatsby-plugin-emotion" plugin declared in "...\node_modules\gatsby-theme-docz\gatsby-config.js".
感谢您的帮助
在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",