Skip to content

v0.14.0 rpts2 cache issue with Yarn workspaces #888

Closed

Description

@jaredpalmer

Current Behavior

TSDX isn't building when used with yarn workspaces. Seems like it may be a rollup-plugin-typescript-2 cache issue?

(typescript) Error: ENOENT: no such file or directory, rename '/Users/jared/workspace/github/jaredpalmer/formik-actual/packages/formik/node_modules/.cache/rollup-plugin-typescript2/rpt2_48f7284bed271946d808c741a74a6d872af7a18e/code/cache_' -> '/Users/jared/workspace/github/jaredpalmer/formik-actual/packages/formik/node_modules/.cache/rollup-plugin-typescript2/rpt2_48f7284bed271946d808c741a74a6d872af7a18e/code/cache'
Error: ENOENT: no such file or directory, rename '/Users/jared/workspace/github/jaredpalmer/formik-actual/packages/formik/node_modules/.cache/rollup-plugin-typescript2/rpt2_48f7284bed271946d808c741a74a6d872af7a18e/code/cache_' -> '/Users/jared/workspace/github/jaredpalmer/formik-actual/packages/formik/node_modules/.cache/rollup-plugin-typescript2/rpt2_48f7284bed271946d808c741a74a6d872af7a18e/code/cache'
    at Object.renameSync (fs.js:643:3)
    at RollingCache.roll (/Users/jared/workspace/github/jaredpalmer/formik-actual/node_modules/tsdx/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:24003:12)
    at TsCache.done (/Users/jared/workspace/github/jaredpalmer/formik-actual/node_modules/tsdx/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:24845:24)
    at Object._ongenerate (/Users/jared/workspace/github/jaredpalmer/formik-actual/node_modules/tsdx/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:29098:21)
    at Object.generateBundle (/Users/jared/workspace/github/jaredpalmer/formik-actual/node_modules/tsdx/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:29076:18)
    at /Users/jared/workspace/github/jaredpalmer/formik-actual/node_modules/rollup/dist/shared/node-entry.js:13117:25
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

Expected behavior

TSDX 14 works with yarn workspaces

Suggested solution(s)

Additional context

Your environment

  System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
    Memory: 2.11 GB / 16.00 GB
    Shell: 3.0.2 - /usr/local/bin/fish
  Binaries:
    Node: 12.14.1 - ~/n/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.13.4 - ~/n/bin/npm
  Browsers:
    Chrome: 85.0.4183.121
    Chrome Canary: 87.0.4273.0
    Firefox: 71.0
    Firefox Developer Edition: 67.0
    Firefox Nightly: 58.0a1
    Safari: 13.1.1
    Safari Technology Preview: 14.0
  npmGlobalPackages:
    tsdx: 0.14.0
    typescript: 3.8.3

Activity

  1. jaredpalmer commented on Sep 24, 2020

    @jaredpalmer
    OwnerAuthor

    Have no idea why that happened. Nuked node modules and now it seems to be okay.

  2. added
    kind: supportAsking for support with something or a specific use case
    solution: can't reproAn attempt to reproduce has been tried and failed
    and removed
    kind: bugSomething isn't working
    on Sep 25, 2020
  3. changed the title [-]v0.14 No longer supports yarn workspaces[/-] [+]v0.14 No longer supports yarn workspaces -- rpts2 cache issue[/+] on Sep 25, 2020
  4. changed the title [-]v0.14 No longer supports yarn workspaces -- rpts2 cache issue[/-] [+]v0.14.0 rpts2 cache issue[/+] on Sep 25, 2020
  5. agilgur5 commented on Sep 29, 2020

    @agilgur5
    Collaborator

    Looks like this is a cache bug upstream that was recently fixed: ezolenko/rollup-plugin-typescript2#243

  6. changed the title [-]v0.14.0 rpts2 cache issue[/-] [+]v0.14.0 rpts2 cache issue with Yarn workspaces[/+] on Oct 1, 2020
  7. added
    solution: duplicateThis issue or pull request already exists
    kind: bugSomething isn't working
    and removed
    kind: supportAsking for support with something or a specific use case
    solution: can't reproAn attempt to reproduce has been tried and failed
    on Oct 12, 2020
  8. agilgur5 commented on Oct 12, 2020

    @agilgur5
    Collaborator

    Gonna reverse mark this as duplicate of #892 since that now has more investigations

  9. agilgur5 commented on Oct 13, 2020

    @agilgur5
    Collaborator

    This has been fixed with #896 / ezolenko/rollup-plugin-typescript2#243 and just released in v0.14.1.

  10. Repository owner locked as resolved and limited conversation to collaborators on Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions