Giter VIP home page Giter VIP logo

firebase-pnpm-workspaces's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ecam900

firebase-pnpm-workspaces's Issues

Error during copy dependencies

Hi @willviles first and foremost, thanks for your work when building this library, it will save tons of time for many future developers, I really appreciated that.

I faced the same problem here and end up trying this script with my public repository here. My repo is forked and built up from the turbo kitchen sink example

I tried to run on my repo the command pnpx firebase-pnpm-workspaces --filter api and got the following error

.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 1, reused 0, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 2, reused 2, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 5, reused 4, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 16, reused 12, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 34, reused 34, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 40, reused 39, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000    |  +40 ++++
.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 40, reused 39, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000    | Progress: resolved 40, reused 40, downloaded 0, added 40, done
Error: Cannot copy '../../../node_modules/.pnpm/[email protected]_we2p4sglclq5bmc4orivof3sv4/node_modules/ts-jest' to a subdirectory of itself, '../../../node_modules/.pnpm/[email protected]_we2p4sglclq5bmc4orivof3sv4/node_modules/ts-jest'.
    at /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/copy/copy.js:213:21
    at FSReqCallback.oncomplete (node:fs:197:23)
 ERROR  Command failed with exit code 1: /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.bin/firebase-pnpm-workspaces --filter api

pnpm: Command failed with exit code 1: /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.bin/firebase-pnpm-workspaces --filter api
    at makeError (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:22442:17)
    at handlePromise (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:23013:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.handler [as dlx] (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:188188:7)
    at async /home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195480:21
    at async main (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195451:34)
    at async runPnpm (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195645:5)
    at async /home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195637:7

I am still not sure what are the problems here, but as I read the source code from your library, maybe the problem occurred during copying the dependencies:

// Copy all dependency workspaces to tmp

If you have time, you can check out my branch to give it a try, I will continue investigating this issue tomorrow.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.