-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
New install fails with error: Unable to find plugin "gatsby-theme-docz". #1033
Comments
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 ? rm -rf ./node_modules ./.docz && yarn install && yarn dev Some questions about your project : Is it in a yarn or lerna workspace ? Does it use gatsby ? |
I have tried do remove both node_modules and the .docz file to no avail. The project is a react, typescript project. we use yarn. I havent set up a workspace as i was under the impression i could just add docz and then add mdx files next to the components and We dont use gatsby. |
Just a heads up that i upgraded to Some more context: I have added |
Noted ! Would you mind sharing the other dependencies in your package.json ? Or (even better) maybe a small repo with a repro of this problem ? |
Unfortunately i cant share the repo but i can share our package.json. : {
"name": "incenter-webui",
"version": "0.1.0",
"description": "InCenter Web User Interface",
"main": "none",
"private": true,
"scripts": {
"test": "yarn run license-check && yarn typecheck && cross-env CONFIG_ENV=test jest --coverage && yarn line-coverage",
"update-snapshot": "cross-env CONFIG_ENV=test jest -u",
"lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less",
"fix-src": "./node_modules/.bin/eslint \"src/**/*.{ts,tsx,js}\" --fix",
"fix-less": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" --fix",
"fix-tests": "./node_modules/.bin/eslint \"__tests__/**/*.{ts,tsx,js}\" --fix",
"line-coverage": "node ./node_modules/check-line-coverage \"coverage/clover.xml\" \"80\"",
"bamboo-lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" -f node_modules/eslint-bamboo-formatter/reporter.js && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less --custom-formatter node_modules/stylelint-mocha-formatter/index.js > stylelint.json || true",
"dev": "cross-env OEM=incenter webpack-dev-server --inline -d",
"dev-production": "cross-env NODE_ENV=production webpack-dev-server --inline --mode=production --devtool 'source-map' --progress",
"build": "cross-env NODE_ENV=production webpack -p",
"build-dev": "cross-env NODE_ENV=development webpack --mode=production --devtool 'source-map' --progress",
"build-watch": "webpack --watch --devtool 'source-map' --mode=production --progress",
"test:watch": "jest --watchAll",
"typecheck": "tsc --noEmit -p .",
"license-check": "node ./node_modules/@clavister/license-check/licenseCheck.js --verify --paths=. -o=missingLicenses.json",
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",
"eslint-check-rules": "./node_modules/.bin/eslint --print-config . | eslint-config-prettier-check",
"pretty-check": "prettier --check \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
"pretty": "prettier --write \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,ts,tsx}": [
"yarn pretty-check",
"git add"
],
"src/**/*.{less,css}": [
"stylelint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "ssh://git@bitbucket.clavister.com:7999/ems/webui.git"
},
"keywords": [
"incenter",
"webui"
],
"author": "Clavister",
"license": "CLAVISTER",
"dependencies": {
"@clavister/configuration-categories": "^1.0.0",
"@clavister/globalObjectsWhitelist": "^1.0.2",
"@clavister/socketEvent": "^2.0.4",
"@types/enzyme": "^3.1.6",
"@types/file-saver": "^1.3.0",
"@types/jest": "^21.1.3",
"@types/jsonwebtoken": "^8.3.0",
"@types/memoize-one": "^4.1.0",
"@types/mousetrap": "^1.5.34",
"@types/node": "^11.10.4",
"@types/query-string": "^6.1.0",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@types/react-grid-layout": "^0.14.3",
"@types/react-redux": "^6.0.6",
"@types/react-router-dom": "^4.0.7",
"@types/react-virtualized": "^9.7.4",
"@types/redux-mock-store": "^1.0.0",
"@types/rison": "^0.0.6",
"@types/shallowequal": "^1.1.1",
"@types/webpack-env": "^1.13.7",
"fast-deep-equal": "^2.0.1",
"file-saver": "^1.3.8",
"focus-trap-react": "^3.1.2",
"js-logger": "^1.4.1",
"jsonwebtoken": "^8.0.1",
"memoize-one": "^5.0.0",
"mousetrap": "^1.6.1",
"prop-types": "^15.6.2",
"query-string": "^6.1.0",
"react": "~16.9.0 ",
"react-cookie": "2.2.0",
"react-dom": "~16.9.0",
"react-grid-layout": "^0.15.3",
"react-markdown": "^4.0.6",
"react-redux": "^5.0.7",
"react-router-dom": "^4.2.2",
"react-sizeme": "^2.5.2",
"react-virtualized": "^9.10.1",
"redux": "^4.0.0",
"redux-store-observer": "^1.0.0",
"redux-thunk": "^2.3.0",
"reselect": "^3.0.1",
"rison": "^0.1.1",
"scheduler": "0.15.0",
"semantic-ui-less": "^2.3.3",
"semantic-ui-react": "^0.83.0",
"shallowequal": "^1.1.0",
"toml": "^3.0.0",
"tslib": "^1.9.3",
"typeface-open-sans": "^0.0.54"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@clavister/license-check": "^1.0.0",
"@svgr/webpack": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.2",
"babel-plugin-js-logger": "^1.0.16",
"babel-plugin-transform-class-properties": "^6.24.1",
"check-line-coverage": "file:tools/check-line-coverage",
"cross-env": "^3.2.4",
"css-loader": "^1.0.0",
"docz": "^2.0.0-rc.8",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.0",
"eslint": "^5.16.0",
"eslint-bamboo-formatter": "^0.1.0",
"eslint-config-prettier": "^4.2.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jsdoc": "^4.8.3",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.1.5",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.0.1",
"file-loader": "^2.0.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"jest-bamboo-formatter": "^1.0.1",
"jest-enzyme": "^7.0.1",
"jest-fetch-mock": "^1.6.6",
"jest-localstorage-mock": "^2.2.0",
"json-loader": "^0.5.4",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"lint-staged": "^8.1.5",
"mini-css-extract-plugin": "^0.5.0",
"mock-socket": "^8.0.4",
"nock": "^9.0.14",
"prettier": "^1.17.0",
"redux-mock-store": "^1.5.3",
"style-loader": "^0.23.0",
"stylelint": "^9.10.1",
"stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
"svgo": "^1.2.0",
"svgo-loader": "^2.2.0",
"ts-jest": "^24.0.0",
"ts-loader": "^5.3.3",
"typescript": "~3.4.3",
"typings-for-css-modules-loader": "^1.5.0",
"url-loader": "^1.1.1",
"webpack": "^4.20.2",
"webpack-bundle-analyzer": "^3.0.4",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^3.1.11",
"yml-loader": "^2.1.0"
},
"jest": {
"moduleNameMapper": {
"app.yml": "<rootDir>/__mocks__/appConfigMock.js",
"\\.(css|less)$": "identity-obj-proxy"
},
"transform": {
"^.+[\\\\|\\/]assets[\\\\|\\/]icons[\\\\|\\/].+\\.svg$": "<rootDir>/__transforms__/iconFileTransform.js",
"^.+\\.(svg|jpg|jpeg|png)$": "<rootDir>/__transforms__/filePathTransform.js"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules"
],
"modulePaths": [
"<rootDir>/src",
"<rootDir>"
],
"testMatch": [
"**/__tests__/**/*.(spec|test).(js|jsx|ts|tsx)"
],
"collectCoverageFrom": [
"**/src/**/*.{js,jsx,ts,tsx}",
"!**/src/**/*.d.ts",
"!**/node_modules/**",
"!**/src/domain/gateway/mockGateways.ts"
],
"moduleFileExtensions": [
"js",
"json",
"jsx",
"ts",
"tsx"
],
"setupFilesAfterEnv": [
"<rootDir>/jestSetup.js"
],
"collectCoverage": false,
"testResultsProcessor": "<rootDir>/node_modules/jest-bamboo-formatter",
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFiles": [
"jest-localstorage-mock",
"raf/polyfill"
],
"preset": "ts-jest/presets/js-with-ts"
}
}
|
Hey! Just wondering if you guys have had a chance to look into this? I know you are super busy with the other issues... |
Hey @molebox yep I've looked into it and was able to reproduce it, it should be solved with Could you give it a try ? rm -rf .docz && yarn add docz@next && yarn docz dev If it still happens, could you also provide the And try : |
Hey @rakannimer Thanks for looking into this, we are eager to get this up and running at our company. Unfortunately its still not working and showing the same error. When i run Here is the {
"name": "incenter-webui",
"version": "0.1.0",
"description": "InCenter Web User Interface",
"main": "none",
"private": true,
"scripts": {
"test": "yarn run license-check && yarn typecheck && cross-env CONFIG_ENV=test jest --coverage && yarn line-coverage",
"update-snapshot": "cross-env CONFIG_ENV=test jest -u",
"lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less",
"fix-src": "./node_modules/.bin/eslint \"src/**/*.{ts,tsx,js}\" --fix",
"fix-less": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" --fix",
"fix-tests": "./node_modules/.bin/eslint \"__tests__/**/*.{ts,tsx,js}\" --fix",
"line-coverage": "node ./node_modules/check-line-coverage \"coverage/clover.xml\" \"80\"",
"bamboo-lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" -f node_modules/eslint-bamboo-formatter/reporter.js && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less --custom-formatter node_modules/stylelint-mocha-formatter/index.js > stylelint.json || true",
"dev": "gatsby develop",
"dev-production": "cross-env NODE_ENV=production webpack-dev-server --inline --mode=production --devtool 'source-map' --progress",
"build": "gatsby build",
"build-dev": "cross-env NODE_ENV=development webpack --mode=production --devtool 'source-map' --progress",
"build-watch": "webpack --watch --devtool 'source-map' --mode=production --progress",
"test:watch": "jest --watchAll",
"typecheck": "tsc --noEmit -p .",
"license-check": "node ./node_modules/@clavister/license-check/licenseCheck.js --verify --paths=. -o=missingLicenses.json",
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",
"eslint-check-rules": "./node_modules/.bin/eslint --print-config . | eslint-config-prettier-check",
"pretty-check": "prettier --check \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
"pretty": "prettier --write \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
"serve": "gatsby serve"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,ts,tsx}": [
"yarn pretty-check",
"git add"
],
"src/**/*.{less,css}": [
"stylelint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "ssh://git@bitbucket.clavister.com:7999/ems/webui.git"
},
"keywords": [
"incenter",
"webui"
],
"author": "Clavister",
"license": "CLAVISTER",
"dependencies": {
"@clavister/configuration-categories": "^1.0.0",
"@clavister/globalObjectsWhitelist": "^1.0.2",
"@clavister/socketEvent": "^2.0.4",
"@types/enzyme": "^3.1.6",
"@types/file-saver": "^1.3.0",
"@types/jest": "^21.1.3",
"@types/jsonwebtoken": "^8.3.0",
"@types/memoize-one": "^4.1.0",
"@types/mousetrap": "^1.5.34",
"@types/node": "^11.10.4",
"@types/query-string": "^6.1.0",
"@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0",
"@types/react-grid-layout": "^0.14.3",
"@types/react-redux": "^6.0.6",
"@types/react-router-dom": "^4.0.7",
"@types/react-virtualized": "^9.7.4",
"@types/redux-mock-store": "^1.0.0",
"@types/rison": "^0.0.6",
"@types/shallowequal": "^1.1.1",
"@types/webpack-env": "^1.13.7",
"fast-deep-equal": "^2.0.1",
"file-saver": "^1.3.8",
"focus-trap-react": "^3.1.2",
"js-logger": "^1.4.1",
"jsonwebtoken": "^8.0.1",
"memoize-one": "^5.0.0",
"mousetrap": "^1.6.1",
"prop-types": "^15.6.2",
"query-string": "^6.1.0",
"react": "~16.9.0 ",
"react-cookie": "2.2.0",
"react-dom": "~16.9.0",
"react-grid-layout": "^0.15.3",
"react-markdown": "^4.0.6",
"react-redux": "^5.0.7",
"react-router-dom": "^4.2.2",
"react-sizeme": "^2.5.2",
"react-virtualized": "^9.10.1",
"redux": "^4.0.0",
"redux-store-observer": "^1.0.0",
"redux-thunk": "^2.3.0",
"reselect": "^3.0.1",
"rison": "^0.1.1",
"semantic-ui-less": "^2.3.3",
"semantic-ui-react": "^0.83.0",
"shallowequal": "^1.1.0",
"toml": "^3.0.0",
"tslib": "^1.9.3",
"typeface-open-sans": "^0.0.54",
"gatsby": "2.15.6",
"gatsby-plugin-typescript": "2.1.6",
"gatsby-plugin-eslint": "2.0.5",
"gatsby-theme-docz": "^2.0.0-rc.31"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@clavister/license-check": "^1.0.0",
"@svgr/webpack": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.2",
"babel-plugin-js-logger": "^1.0.16",
"babel-plugin-transform-class-properties": "^6.24.1",
"check-line-coverage": "file:tools/check-line-coverage",
"cross-env": "^3.2.4",
"css-loader": "^1.0.0",
"docz": "^2.0.0-rc.31",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.0",
"eslint": "^5.16.0",
"eslint-bamboo-formatter": "^0.1.0",
"eslint-config-prettier": "^4.2.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-jsdoc": "^4.8.3",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.1.5",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.0.1",
"file-loader": "^2.0.0",
"fork-ts-checker-webpack-plugin": "^0.5.2",
"html-webpack-plugin": "^3.2.0",
"husky": "^1.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"jest-bamboo-formatter": "^1.0.1",
"jest-enzyme": "^7.0.1",
"jest-fetch-mock": "^1.6.6",
"jest-localstorage-mock": "^2.2.0",
"json-loader": "^0.5.4",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"lint-staged": "^8.1.5",
"mini-css-extract-plugin": "^0.5.0",
"mock-socket": "^8.0.4",
"nock": "^9.0.14",
"prettier": "^1.17.0",
"redux-mock-store": "^1.5.3",
"style-loader": "^0.23.0",
"stylelint": "^9.10.1",
"stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
"svgo": "^1.2.0",
"svgo-loader": "^2.2.0",
"ts-jest": "^24.0.0",
"ts-loader": "^5.3.3",
"typescript": "~3.4.3",
"typings-for-css-modules-loader": "^1.5.0",
"url-loader": "^1.1.1",
"webpack": "^4.20.2",
"webpack-bundle-analyzer": "^3.0.4",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^3.1.11",
"yml-loader": "^2.1.0"
},
"jest": {
"moduleNameMapper": {
"app.yml": "<rootDir>/__mocks__/appConfigMock.js",
"\\.(css|less)$": "identity-obj-proxy"
},
"transform": {
"^.+[\\\\|\\/]assets[\\\\|\\/]icons[\\\\|\\/].+\\.svg$": "<rootDir>/__transforms__/iconFileTransform.js",
"^.+\\.(svg|jpg|jpeg|png)$": "<rootDir>/__transforms__/filePathTransform.js"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules"
],
"modulePaths": [
"<rootDir>/src",
"<rootDir>"
],
"testMatch": [
"**/__tests__/**/*.(spec|test).(js|jsx|ts|tsx)"
],
"collectCoverageFrom": [
"**/src/**/*.{js,jsx,ts,tsx}",
"!**/src/**/*.d.ts",
"!**/node_modules/**",
"!**/src/domain/gateway/mockGateways.ts"
],
"moduleFileExtensions": [
"js",
"json",
"jsx",
"ts",
"tsx"
],
"setupFilesAfterEnv": [
"<rootDir>/jestSetup.js"
],
"collectCoverage": false,
"testResultsProcessor": "<rootDir>/node_modules/jest-bamboo-formatter",
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFiles": [
"jest-localstorage-mock",
"raf/polyfill"
],
"preset": "ts-jest/presets/js-with-ts"
}
} It looks to be the same as the current projects package.json.... IS that correct? should it just copy over? I just did a clean branch of our project, ran Hope this info helps, would love to get this working! |
Jeez, sorry for the formatting! How do i tab the code inwards? |
Could you try (temporarily) removing all local packages in your main Local packages are packages that have a filesystem path instead of a version like : {
"check-line-coverage": "file:tools/check-line-coverage",
"stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
} then run : rm -rf .docz && yarn docz dev |
Ok so removing those two meant the error went away! However i see another error when its checking the dependencies:
Error: connect ECONNREFUSED 140.82.118.3:443 C:\Users\riha\Documents\webui.docz\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) √ Dependencies checked! Its does however build but i get this is the mdx file: name: Button
|
So i cannot have any local packages on my package.json? The ones that have file? For Docz to work? |
Ok so it looks like im up and running! Im just having problems with this frontmatter error but the docz are now loading. I'll close this issue once i know why i cant use the local packages in the package.json. Thanks again for all your help by the way! :) |
Hopefully that won't be a problem by the time official v2 is out. I'm working on something that should get rid of that problem but it's not very easy so it might take a bit of time to get it right. Meanwhile 2 questions :
npx create-docz-app docz-app-test && cd docz-app-test && yarn dev does it work ? (trying to see if the problem is from windows or if it's your particular set of dependencies) |
We dont have an |
Yes the Could you try running the command in a separate folder just to confirm docz is working as expected on your machine. npx create-docz-app docz-app-test && cd docz-app-test && yarn dev |
Sorry, im behind a corporate proxy so cant run that command... |
Ok no problem. One last request, could you try in your project : rm -rf .docz/node_modules && cp .yarnrc .docz/.yarnrc && yarn && yarn dev |
I ran My ContentHeader Component: My doczrc.js: // import {css} from 'docz-plugin-css'; export default { I did try installing the docz-plugin-css but it then threw an error saying it couldnt find gatsby-plugin-mdx: UNHANDLED REJECTION Unable to find plugin "gatsby-plugin-mdx". Perhaps you need to install its package? Error: Unable to find plugin "gatsby-plugin-mdx". Perhaps you need to install its package?
|
Hey, I released a new version that doesn't need to install any dependencies. Could you try it ? yarn remove docz && yarn add docz@2.0.0-rc.33 && yarn docz dev |
Hey! Strange im getting this when running that command:
I'll run it from @next |
It probably hasn't properly propagated yet ( released it minutes ago ). |
But I'm pretty sure it's the right version : https://www.npmjs.com/package/docz/v/2.0.0-rc.33 |
Yeah i saw that, running it now as |
Is the goal here to remove the frontmatter error? If so its still there. It seems as though the findEntry function in gatsby-theme-docz/src/base/Layout cant figure out line 29 : |
hang on it installed rc-31. I'll run it again |
And please make sure to delete .docz folder too |
I guess i have to wait a bit as its still installing rc-31 as next and asking me to choose a version if i specify rc-33. I'll try again in..... 10 mins? Not sure how long it takes for npm to push it out |
This is very odd. Im still not able to install |
Was finally able to install the latest version (rc-35 at the time of writing) but unfortunatley it seems that something is broken: C:\Users\riha\Documents\webui (test/docs -> origin) Error: connect ECONNREFUSED 140.82.118.3:443 C:\Users\riha\Documents\webui\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) |
Oh, is this because im behind a corporate proxy? |
The problem here looks like it's not directly from Here are some issues of people with the same problem gatsbyjs/gatsby#11101 Make sure to check if you can find something that allows you to get through the install. I would start by trying (commit before you do) : rm -rf node_modules .docz yarn.lock package-lock.json && yarn
yarn docz dev |
Almost definitely, but I'm not sure how it's failing exactly. |
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! :) |
@rakannimer may i ask, due to this change:
Does that mean that the user installs the dependencies? Hence our firewall at work is blocking it? Im not to savvy with this stuff so i hope that makes sense.. :) |
Before 2.0.0-rc.33, docz used to re-install all your dependencies when you call docz dev for the first time, and add to them gatsby-theme-docz (and others) After 2.0.0-rc.33, docz requires gatsby-theme-docz directly when you install it and doesn't add or install any other dependencies when you run it for the first time. So to answer your question : < 2.0.0-rc.33yarn add docz@next # doesn't install gatsby-theme-docz
yarn docz dev # if it's the first run it would re-install your dependencies + gatsby-theme-docz >= 2.0.0-rc.33yarn add docz@next # also installs gatsby-theme-docz as a docz@next dependency
yarn docz dev # doesn't install anything and is very fast TLDR; I'm not sure the problem is related to the switch between versions 32 - 33 but I might be wrong ! |
Ok thanks for clearing that up, it makes much more sense now that you explained it! I dont know why im now getting this error, i doubt its cos of those changes but it would at least install on rc-31 so something is up. If the problems im having are issues with me being behind the corporate firewall then there isnt much i can do about it ( i work for a network security firm, so they are really strict) Its a shame as i really wanted to use docz for our webui docs. Thank you so much for your time trying to help me out, really appreciate it. :) |
No problem at all, I'm sure if it's happening with you then it's also happening with lots of others and that's a shame ! As a last resort, could you also take a look at this : https://www.gatsbyjs.org/docs/gatsby-on-windows/ ? And if you have the time, I would appreciate it if you could try setting up a gatsby site https://www.gatsbyjs.org/docs/quick-start/ to see if it would work without docz. Cheers 😄 |
Sooo I can confirm that gatsby installs correctly. (by using |
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. |
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?
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
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: