React-MD project fail at bring up dev setup project
Description
React-MD project fail at bring up dev setup project I follow the "Minimal Setup" dev project steps to try to bring it up:
But I got these errors here -->
Link to a gist or code sample where the issue can be reproduced
~/hobby_projects/react-md(master) » yarn dev
yarn run v1.3.2
$ npm-run-all -p build:watch docs
$ cd docs && npm run clean && npm run doc-dbs && npm-run-all -p start:dev watch:all
$ npm-run-all -p build:cjs:watch build:es:watch
[email protected] clean /Users/tnguyen/hobby_projects/react-md/docs npm-run-all -p clean:assets clean:dbs
$ npm run build:cjs -- -w $ npm run build:es -- -w
[email protected] clean:assets /Users/tnguyen/hobby_projects/react-md/docs rimraf dist webpack-assets.json "public/!(robots.txt|react-md.png|favicon.ico)"
[email protected] clean:dbs /Users/tnguyen/hobby_projects/react-md/docs rimraf "src/server/databases/!(airQuality).json"
[email protected] build:cjs /Users/tnguyen/hobby_projects/react-md cross-env NODE_ENV=development BABEL_ENV=cjs babel src/js -d lib --ignore=tests,mocks "-w"
[email protected] build:es /Users/tnguyen/hobby_projects/react-md cross-env NODE_ENV=development BABEL_ENV=es babel src/js -d es --ignore=tests,mocks "-w"
[email protected] doc-dbs /Users/tnguyen/hobby_projects/react-md/docs npm run sassdoc && yarn run sassdoc:site && yarn run colors && npm run docgen && npm run examples-db
[email protected] sassdoc /Users/tnguyen/hobby_projects/react-md/docs babel-node src/scripts/createSassDoc.js
src/js/Autocompletes/Autocomplete.js -> es/Autocompletes/Autocomplete.js src/js/Autocompletes/index.js -> es/Autocompletes/index.js src/js/Autocompletes/Autocomplete.js -> lib/Autocompletes/Autocomplete.js src/js/Autocompletes/index.js -> lib/Autocompletes/index.js src/js/Avatars/Avatar.js -> es/Avatars/Avatar.js src/js/Avatars/index.js -> es/Avatars/index.js src/js/Avatars/Avatar.js -> lib/Avatars/Avatar.js src/js/Avatars/index.js -> lib/Avatars/index.js src/js/Badges/Badge.js -> es/Badges/Badge.js src/js/Badges/index.js -> es/Badges/index.js src/js/Badges/Badge.js -> lib/Badges/Badge.js src/js/Badges/index.js -> lib/Badges/index.js src/js/BottomNavigations/BottomNav.js -> es/BottomNavigations/BottomNav.js src/js/BottomNavigations/BottomNav.js -> lib/BottomNavigations/BottomNav.js src/js/BottomNavigations/BottomNavigation.js -> es/BottomNavigations/BottomNavigation.js src/js/BottomNavigations/index.js -> es/BottomNavigations/index.js module.js:557 throw err; ^
Error: Cannot find module '../../..'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.babel-node src/scripts/createSassDoc.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] sassdoc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/tnguyen/.npm/_logs/2018-05-29T17_51_12_476Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] doc-dbs: npm run sassdoc && yarn run sassdoc:site && yarn run colors && npm run docgen && npm run examples-db
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] doc-dbs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/tnguyen/.npm/_logs/2018-05-29T17_51_12_499Z-debug.log error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with signal "SIGTERM". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ERROR: "docs" exited with 1. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Version
- React-MD - 1.3.2
Oops. That's my bad. It should really be:
Minimal Setup
mlaursen @ ~/code/react-md
$ yarn
+$ yarn build
$ cd docs
mlaursen @ ~/code/react-md/docs
$ yarn
$ cp .env.example .env
$ cd ..
mlaursen @ ~/code/react-md
$ yarn dev
I forgot that you need the es and lib folders built before the first time the server is run for the "creating documentation" scripts to be successful.
@mlaursen Thank you for the quick reply, please update document ... it will help devs that want to start to contribute.
Should be updated now. Sorry about that!