Component-Library
Component-Library copied to clipboard
:heavy_plus_sign: :bug: add missing dev dependency prettier
🐞 Bugfix
- I couldn't build the project due to missing dev dependency
prettier
🔊 Build Logs
$ npm run build
> [email protected] build
> rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs
sh: prettier: command not found
npm ERR! code 127
npm ERR! path /Users/marcellodesales/dev/github.com/joeythelantern/Component-Library
npm ERR! command failed
npm ERR! command sh -c rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/marcellodesales/.npm/_logs/2022-08-01T03_15_30_272Z-debug.log
🔧 Fix issue
- Just added the missing dev dependency
$ npm install --save-dev --save-exact prettier
added 1 package, and audited 15 packages in 990ms
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
🔊 Fixed logs
$ npm run build
> [email protected] build
> rm -rf dist/ && prettier --write src/ && npm run build:esm && npm run build:cjs
src/index.ts 351ms
src/components/Button.tsx 52ms
src/components/index.ts 2ms
src/hooks/index.ts 2ms
src/hooks/useLogging.ts 5ms
src/library/index.ts 2ms
src/library/Logging.ts 14ms