Repository navigation
v0.14.0 rpts2 cache issue with Yarn workspaces #888
Copy link
Copy link
Closed
Labels
kind: bugSomething isn't workingSomething isn't workingscope: upstreamIssue in upstream dependencyIssue in upstream dependencysolution: duplicateThis issue or pull request already existsThis issue or pull request already existssolution: workaround availableThere is a workaround available for this issueThere is a workaround available for this issuetopic: rollup-plugin-typescript2Issues and PRs relating to rpts2Issues and PRs relating to rpts2
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't workingscope: upstreamIssue in upstream dependencyIssue in upstream dependencysolution: duplicateThis issue or pull request already existsThis issue or pull request already existssolution: workaround availableThere is a workaround available for this issueThere is a workaround available for this issuetopic: rollup-plugin-typescript2Issues and PRs relating to rpts2Issues and PRs relating to rpts2
Activity
jaredpalmer commentedon Sep 24, 2020
Have no idea why that happened. Nuked node modules and now it seems to be okay.
[-]v0.14 No longer supports yarn workspaces[/-][+]v0.14 No longer supports yarn workspaces -- rpts2 cache issue[/+][-]v0.14 No longer supports yarn workspaces -- rpts2 cache issue[/-][+]v0.14.0 rpts2 cache issue[/+]agilgur5 commentedon Sep 29, 2020
Looks like this is a cache bug upstream that was recently fixed: ezolenko/rollup-plugin-typescript2#243
[-]v0.14.0 rpts2 cache issue[/-][+]v0.14.0 rpts2 cache issue with Yarn workspaces[/+]agilgur5 commentedon Oct 12, 2020
Gonna reverse mark this as duplicate of #892 since that now has more investigations
agilgur5 commentedon Oct 13, 2020
This has been fixed with #896 / ezolenko/rollup-plugin-typescript2#243 and just released in v0.14.1.