danielroe / siroc

Zero-config build tooling for Node
MIT License
152 stars 4 forks source link

fix: ERROR Not a selected package. #217

Open Decipher opened 3 years ago

Decipher commented 3 years ago

🐛 The bug While building inside a Yarn 2 mono-repo I intermittently get this error:

ERROR  Not a selected package.                                                                                 21:36:31

  at .yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:629:17
  at .yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:168:39
  at Generator.next (<anonymous>)
  at .yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:108:61
  at new Promise (<anonymous>)
  at __async$6 (.yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:89:10)
  at runInParallel (.yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:149:3)
  at Package.<anonymous> (.yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:619:30)
  at Generator.next (<anonymous>)
  at fulfilled (.yarn/cache/siroc-npm-0.14.0-02d5e57a2f-d1590acb07.zip/node_modules/siroc/bin/cli.js:259:24) (repeated 2 times)

🛠️ To reproduce Steps to reproduce the behavior:

  1. GitPod: https://lavender-xerinae-deryfy79.ws-us11.gitpod.io/
  2. yarn build druxt

Or:

  1. https://gitpod.io/#github.com/Decipher/druxt.js/tree/feature/82-yarn_monorepo
  2. yarn build druxt (maybe)

🌈 Expected behaviour Not throw error :(

ℹ️ Additional context Based on all the other issues I’ve had, I’m sure Yarn 2 is responsible :)