You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected to be able to run yarn install for eq-author frontend and then start the app.
Actual behaviour
Getting the following exception:
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_posix.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_windows.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/basic_timers.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/stap_timers.o
AR(target) Release/obj.target/libgpr.a
COPY Release/libgpr.a
CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o
In file included from ../node_modules/nan/nan_converters.h:67:0,
from ../node_modules/nan/nan.h:222,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:18:51: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Localv8::Context)’
val->To ## TYPE(isolate->GetCurrentContext())
^
../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
X(Boolean)
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3086:18: note: candidate: v8::Localv8::Boolean v8::Value::ToBoolean(v8::Isolate*) const
Local ToBoolean(Isolate* isolate) const;
^~~~~~~~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3086:18: note: no known conversion for argument 1 from ‘v8::Localv8::Context’ to ‘v8::Isolate*’
In file included from ../node_modules/nan/nan_converters.h:67:0,
from ../node_modules/nan/nan.h:222,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Localv8::Context)’
return val->NAME ## Value(isolate->GetCurrentContext());
^
../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3096:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3096:8: note: no known conversion for argument 1 from ‘v8::Localv8::Context’ to ‘v8::Isolate*’
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:223,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../node_modules/nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:6196:23: note: candidate: static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)
static Local New(Isolate* isolate, Local value);
^~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:6196:23: note: candidate expects 2 arguments, 1 provided
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:223,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../node_modules/nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-cast-function-type’ [-Werror]
cc1plus: all warnings being treated as errors
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
make: Leaving directory /home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error: make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:520:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 4.14.262-200.489.amzn2.x86_64
gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node" "/home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
gyp ERR! cwd /home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc
gyp ERR! node -v v16.14.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node /home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/ec2-user/environment/eq-author-app/eq-author/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Linux 4.14.262-200.489.amzn2.x86_64
node-pre-gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node" "/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc
node-pre-gyp ERR! node -v v16.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node /home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/ec2-user/environment/eq-author-app/eq-autho
Expected behaviour
Expected to be able to run yarn install for eq-author frontend and then start the app.
Actual behaviour
Getting the following exception:
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_posix.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/gprpp/thd_windows.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/basic_timers.o
CXX(target) Release/obj.target/gpr/deps/grpc/src/core/lib/profiling/stap_timers.o
AR(target) Release/obj.target/libgpr.a
COPY Release/libgpr.a
CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o
In file included from ../node_modules/nan/nan_converters.h:67:0,
from ../node_modules/nan/nan.h:222,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:18:51: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Localv8::Context)’
val->To ## TYPE(isolate->GetCurrentContext())
^
../node_modules/nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
X(Boolean)
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3086:18: note: candidate: v8::Localv8::Boolean v8::Value::ToBoolean(v8::Isolate*) const
Local ToBoolean(Isolate* isolate) const;
^~~~~~~~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3086:18: note: no known conversion for argument 1 from ‘v8::Localv8::Context’ to ‘v8::Isolate*’
In file included from ../node_modules/nan/nan_converters.h:67:0,
from ../node_modules/nan/nan.h:222,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value)’:
../node_modules/nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Localv8::Context)’
return val->NAME ## Value(isolate->GetCurrentContext());
^
../node_modules/nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3096:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:3096:8: note: no known conversion for argument 1 from ‘v8::Localv8::Context’ to ‘v8::Isolate*’
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:223,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../node_modules/nan/nan_implementation_12_inl.h:356:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from /home/ec2-user/.cache/node-gyp/16.14.0/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:53,
from ../ext/byte_buffer.cc:21:
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:6196:23: note: candidate: static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)
static Local New(Isolate* isolate, Local value);
^~~
/home/ec2-user/.cache/node-gyp/16.14.0/include/node/v8.h:6196:23: note: candidate expects 2 arguments, 1 provided
In file included from ../node_modules/nan/nan_new.h:189:0,
from ../node_modules/nan/nan.h:223,
from ../ext/byte_buffer.cc:21:
../node_modules/nan/nan_implementation_12_inl.h:356:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../node_modules/nan/nan_implementation_12_inl.h:356:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-cast-function-type’ [-Werror]
cc1plus: all warnings being treated as errors
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
make: Leaving directory
/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:520:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 4.14.262-200.489.amzn2.x86_64
gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node" "/home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
gyp ERR! cwd /home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc
gyp ERR! node -v v16.14.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node /home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/src/node/extension_binary/node-v93-linux-x64-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/ec2-user/environment/eq-author-app/eq-author/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:520:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Linux 4.14.262-200.489.amzn2.x86_64
node-pre-gyp ERR! command "/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node" "/home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/ec2-user/environment/eq-author-app/eq-author/node_modules/grpc
node-pre-gyp ERR! node -v v16.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/home/ec2-user/.nvm/versions/node/v16.14.0/bin/node /home/ec2-user/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/ec2-user/environment/eq-author-app/eq-autho
Steps to reproduce the behaviour
git clone https://github.com/ONSdigital/eq-author-app.git
cd eq-author-app/
yarn install
Technical information
Browser
Operating System
Amazon Linux 2. Also I've tried with MacOS 12.2
Screenshot
The text was updated successfully, but these errors were encountered: