[GH-ISSUE #198] Error running create-proton-app on node@11.9.0 #132

Closed
opened 2026-05-05 11:46:37 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @lacymorrow on GitHub (Feb 5, 2019).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/198

create-proton-app fails in NodeJS version 11.9.0 but runs successfully in version 8.11.4

The end of a VERY verbose stack-trace:

In file included from ../src/EventLoop.cc:1:
In file included from /Users/tmorrow/repo/proton-native/node_modules/libui-node/src/includes/event-loop.h:6:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:24:
../../nbind/include/nbind/v8/Int64.h:151:35
: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
                if(argc > 0) storage = args[0]->Uint32Value();
                                                ^
../../nbind/include/nbind/v8/Int64.h:193:58: note: in instantiation of function template specialization 'nbind::Int64Converter<8>::int64Init<long long>' requested here
DEFINE_INT64_BINDING_TYPE(signed long long, int64ToWire, int64Init);
                                                         ^

/Users/tmorrow/.node-gyp/11.9.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/tmorrow/.node-gyp/11.9.0/include/node/v8config.h:326:29: note:
expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from
../src/EventLoop.cc:1:
In file included from /Users/tmorrow/repo/proton-native/node_modules/libui-node/src/includes/event-loop.h:6:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:24:
../../nbind/include/nbind/v8/Int64.h:152:58: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]

                if(argc > 1) storage += static_cast<uint64_t>(args[1]->Uint32Value()) << 32;
                                                                       ^
/Users/tmorrow/.node-gyp/11.9.0/include/node/v8.h:2571:3: note:
'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/tmorrow/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
Originally created by @lacymorrow on GitHub (Feb 5, 2019). Original GitHub issue: https://github.com/kusti8/proton-native/issues/198 `create-proton-app` fails in NodeJS version 11.9.0 but runs successfully in version 8.11.4 The end of a VERY verbose stack-trace: ``` In file included from ../src/EventLoop.cc:1: In file included from /Users/tmorrow/repo/proton-native/node_modules/libui-node/src/includes/event-loop.h:6: In file included from ../../nbind/include/nbind/nbind.h:8: In file included from ../../nbind/include/nbind/noconflict.h:8: In file included from ../../nbind/include/nbind/BindDefiner.h:24: ../../nbind/include/nbind/v8/Int64.h:151:35 : warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations] if(argc > 0) storage = args[0]->Uint32Value(); ^ ../../nbind/include/nbind/v8/Int64.h:193:58: note: in instantiation of function template specialization 'nbind::Int64Converter<8>::int64Init<long long>' requested here DEFINE_INT64_BINDING_TYPE(signed long long, int64ToWire, int64Init); ^ /Users/tmorrow/.node-gyp/11.9.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /Users/tmorrow/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^ In file included from ../src/EventLoop.cc:1: In file included from /Users/tmorrow/repo/proton-native/node_modules/libui-node/src/includes/event-loop.h:6: In file included from ../../nbind/include/nbind/nbind.h:8: In file included from ../../nbind/include/nbind/noconflict.h:8: In file included from ../../nbind/include/nbind/BindDefiner.h:24: ../../nbind/include/nbind/v8/Int64.h:152:58: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations] if(argc > 1) storage += static_cast<uint64_t>(args[1]->Uint32Value()) << 32; ^ /Users/tmorrow/.node-gyp/11.9.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const); ^ /Users/tmorrow/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED' ```
Author
Owner

@goranmoomin commented on GitHub (Feb 5, 2019):

Have you tried cding into the directory and do npm i? I use node 11 and create-proton-app failes, but doing npm i successfully creates the project

<!-- gh-comment-id:460478679 --> @goranmoomin commented on GitHub (Feb 5, 2019): Have you tried cding into the directory and do `npm i`? I use node 11 and `create-proton-app` failes, but doing `npm i` successfully creates the project
Author
Owner

@lacymorrow commented on GitHub (Feb 5, 2019):

Works!

Just FYI, this is the best choice right now for a cross-platform compilable React app apart from electron-react-boilerplate/electron-react-boilerplate, the biggest part lacking is a better starter and people that use it. This project has some of the best documentation I've seen, that makes it insanely accessible, amazing work.

I used your example app and the Electron builder on a macOS to build for all 3 platforms in every alternative except linux snap.

<!-- gh-comment-id:460551861 --> @lacymorrow commented on GitHub (Feb 5, 2019): Works! Just FYI, this is the best choice right now for a cross-platform compilable React app apart from `electron-react-boilerplate/electron-react-boilerplate`, the biggest part lacking is a better starter and people that use it. This project has some of the best documentation I've seen, that makes it insanely accessible, amazing work. I used your example app and the Electron builder on a macOS to build for all 3 platforms in every alternative except linux `snap`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#132
No description provided.