rollup-plugin-closure-compiler icon indicating copy to clipboard operation
rollup-plugin-closure-compiler copied to clipboard

Google closure compiler exit code 3221225781

Open kioviensis opened this issue 5 years ago • 5 comments

What's the issue?

Failed compilation on my windows laptop

How do we reproduce the issue?

  1. git clone --recursive https://github.com/maktarsis/monoreact.git
  2. npx yarn install
  3. cd example-app/packages/example
  4. npm run build

We'll likely need to know:

  1. Your Rollup configuration. https://github.com/maktarsis/monoreact/blob/master/cli/src/bin/execution/configs/build.config.ts

  2. Error logs from your console when invoking Rollup with this plugin present.

(node:8272) UnhandledPromiseRejectionWarning: Error: Google Closure Compiler exit 3221225781: C:\Users\User\projects\monoreact\node_modules\google-closure
-compiler-windows\compiler.exe --language_out=NO_TRANSPILE --assume_function_wrapper=true --warning_level=QUIET --module_resolution=NODE --externs=C:\Users
\User\AppData\Local\Temp\bbd497ba00bfe80e732c9c0fdaff6eeb983c673d --externs=C:\Users\User\AppData\Local\Temp\8c3566123fa544be89f47cd1c76300842e98aa6f -
-js=C:\Users\User\AppData\Local\Temp\6cacadce9eff1166f9a4ca7149881f04cecf9ead --create_source_map=C:\Users\User\AppData\Local\Temp\0504c11f-3004-45c8-8
35e-b44622180c98

Stack trace:

  at C:\Users\name\projects\monoreact\node_modules\@ampproject\rollup-plugin-closure-compiler\dist\index.js:1572:24
    at ChildProcess.<anonymous> (C:\Users\name\projects\monoreact\node_modules\google-closure-compiler\lib\node\closure-compiler.js:103:9)
    at ChildProcess.emit (events.js:315:20)
  1. Error logs when this plugin is removed from your Rollup configuration. No errors. Just a message Compiled in ....s

Additional context

  1. Node 13.13.0
  2. Windows

Although, it works great, as usual, on my mac laptop.

kioviensis avatar May 02 '20 12:05 kioviensis

It seems to me that this is some kind of problem with the environment. Can you tell me what the problem is?

kioviensis avatar May 02 '20 13:05 kioviensis

Apologies for delays looking into this. I’m out on paternity leave, but will try to address as soon as I can.

kristoferbaxter avatar May 03 '20 05:05 kristoferbaxter

Thanks @kristoferbaxter I will be happy for help with this

kioviensis avatar May 03 '20 07:05 kioviensis

I'm having the exact same problem, i tried searching for a solution, but looks like this is the only place who has any information about this issue

ghost avatar Jul 16 '20 14:07 ghost

Just encountered the same problem. I have multiple projects and I noticed that some exit with this code. I'm not using this plugin just google-closure-compiler directly. It looks like old google-closure-compiler is not working well with Node 13. Newer versions of gcc package work well

DVLP avatar Dec 25 '20 20:12 DVLP