Node 12 support
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior?
Running npm i -D bundlesize
on Node 12 (12.1.0
) results in the following error:
../src/dec/stream_decode.cc:14:72: error: no matching member function for call to 'ToObject'
Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:40:49: error: no matching member function for call to 'ToObject'
StreamDecode* obj = new StreamDecode(info[0]->ToObject());
~~~~~~~~~^~~~~~~~
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:48:35: error: no matching member function for call to 'ToObject'
Local<Object> buffer = info[0]->ToObject();
~~~~~~~~~^~~~~~~~
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2532:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2546:35: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
../src/dec/stream_decode.cc:54:16: error: no matching member function for call to 'BooleanValue'
if (info[2]->BooleanValue()) {
~~~~~~~~~^~~~~~~~~~~~
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2559:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2562:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
../src/dec/stream_decode.cc:70:16: error: no matching member function for call to 'BooleanValue'
if (info[1]->BooleanValue()) {
~~~~~~~~~^~~~~~~~~~~~
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2559:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/drew/.node-gyp/12.1.0/include/node/v8.h:2562:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
5 errors generated.
make: *** [Release/obj.target/iltorb/src/dec/stream_decode.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/drew/.nodenv/versions/12.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/Users/drew/.nodenv/versions/12.1.0/bin/node" "/Users/drew/.nodenv/versions/12.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/drew/Sites/manifoldco/ui/node_modules/iltorb
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN happo.io@3.14.0 requires a peer of babel-core@^6.0.0 || ^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iltorb@1.3.10 install: `detect-libc prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iltorb@1.3.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/drew/.npm/_logs/2019-05-11T18_49_56_080Z-debug.log
Additional info
I tried deleting my ~/.node-gyp
directory, and reinstalling, and still get the error when installing bundlesize.
I have a feeling node-gyp@4.x.x
is required to run on Node v12, but not sure.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Node.js - endoflife.date
Release Released Active Support Se...
19 2 months and 1 week ago. (18 Oct 2022) Ends in 3 months. (01 Apr 2023) En...
18 (...
Read more >Announcing the end of support for Node.js 12.x in the AWS ...
Starting November 1, 2022, AWS SDK For JavaScript (v3) will no longer support Node.js 12.x which was EOL on April 30, 2022.
Read more >Node v12.22.12 (LTS)
js 12 release. Node.js 12 will reach End-of-Life status on 30 April 2022, after which it will no receive updates. You are strongly...
Read more >Node.js Release Working Group - GitHub
Following those 12 months of active support, the major version will transition into "maintenance" mode for 18 months. Prior to Node.js 12 the...
Read more >Node.js ES2015/ES6, ES2016 and ES2017 support
Yes. Yes Yes. Yes Error. Error Error. Error Error. Error Error. Error
function() function() function() function() function() function()
function() function() function() function() function() function()
function() function()...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m working on a new version (1.0.0) of bundlesize that fixes all of these problems.
To not break any of the applications that use bundlesize with npx or with
@latest
, I’m building in a separate bundlesize2 repo + app (until it’s ready)If you’d like you can try it out: https://github.com/siddharthkp/bundlesize2
Migration path:
bundlesize2
instead ofbundlesize
--enable-github-checks
+ authorize bundlesize2 app. More in the docsNote: This is only until the new version is ready and then it will be merged back in this project as a major release
thanks,
bundlesize2
is working fine for me. that fixes the issue.