Skip to content

[Bug] @ampproject/rollup-plugin-closure-compiler - spawn ENOTDIR #847

Closed
@FezVrasta

Description

@FezVrasta
  • I'd be willing to implement a fix

Describe the bug

I'm trying to upgrade @popperjs/popper-core to Yarn 2 but after I get yarn install to work and I try to run the rollup script, I get the following error:

[!] (plugin closure-compiler) Error: spawn ENOTDIR
Error: spawn ENOTDIR
    at ChildProcess.spawn (internal/child_process.js:371:11)
    at spawn (child_process.js:561:9)
    at Compiler.run (/Users/federicozivolo/Projects/popper.js/.yarn/cache/google-closure-compiler-npm-20200112.0.0-18a3ebc35d-1.zip/node_modules/google-closure-compiler/lib/node/closure-compiler.js:76:26)
    at Promise (/Users/federicozivolo/Projects/popper.js/.yarn/$$virtual/@ampproject-rollup-plugin-closure-compiler-virtual-868f7daf3c/0/cache/@ampproject-rollup-plugin-closure-compiler-npm-0.20.0-094d347941-1.zip/node_modules/@ampproject/rollup-plugin-closure-compiler/dist/index.js:1181:18)
    at new Promise (<anonymous>)
    at compiler (/Users/federicozivolo/Projects/popper.js/.yarn/$$virtual/@ampproject-rollup-plugin-closure-compiler-virtual-868f7daf3c/0/cache/@ampproject-rollup-plugin-closure-compiler-npm-0.20.0-094d347941-1.zip/node_modules/@ampproject/rollup-plugin-closure-compiler/dist/index.js:1171:12)
    at renderChunk (/Users/federicozivolo/Projects/popper.js/.yarn/$$virtual/@ampproject-rollup-plugin-closure-compiler-virtual-868f7daf3c/0/cache/@ampproject-rollup-plugin-closure-compiler-npm-0.20.0-094d347941-1.zip/node_modules/@ampproject/rollup-plugin-closure-compiler/dist/index.js:1225:25)

I tried to use pnpify but it doesn't seem to help.

To Reproduce

git clone [email protected]:popperjs/popper-core.git
git checkout chore/yarn2
yarn
yarn build:bundles

Environment if relevant (please complete the following information):

  • OS: macoS
  • Node version 11.15.0
  • Yarn version 2.0.0-rc.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that didn't get attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions