Home
Support Forums

Site failing to deploy

My site vigilant-jones-08681f is failing to with the following error. It is a react front end app with a node back end server. I would gladly your help on this issue

3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
3:44:33 AM: 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
3:44:33 AM: | ^~~~~~~~~~~
3:44:33 AM: | remove_cv
3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
3:44:33 AM: 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
3:44:33 AM: | ^~~~~~~~~~~
3:44:33 AM: | remove_cv
3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
3:44:33 AM: 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
3:44:33 AM: | ^
3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
3:44:33 AM: 492 | !std::is_same<Data, std::remove_cv_t>::value>::Perform(data);
3:44:33 AM: | ^~~~~~~
3:44:33 AM: …/src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
3:44:33 AM: …/src/binding.cpp:284:98: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
3:44:33 AM: 284 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
3:44:33 AM: | ^~~~~~~~~~~~
3:44:33 AM: …/src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
3:44:33 AM: …/src/binding.cpp:320:98: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
3:44:33 AM: 320 | int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
3:44:33 AM: | ^~~~~~~~~~~~
3:44:33 AM: In file included from …/…/nan/nan.h:58,
3:44:33 AM: from …/src/binding.cpp:1:
3:44:33 AM: …/src/binding.cpp: At global scope:
3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
3:44:33 AM: 821 | (node::addon_register_func) (regfunc),
3:44:33 AM: | ^
3:44:33 AM: /opt/buildhome/.node-gyp/16.13.1/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
3:44:33 AM: 855 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
3:44:33 AM: | ^~~~~~~~~~~~~
3:44:33 AM: …/src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
3:44:33 AM: 358 | NODE_MODULE(binding, RegisterModule);
3:44:33 AM: | ^~~~~~~~~~~
3:44:33 AM: make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
3:44:33 AM: make: Leaving directory ‘/opt/build/repo/node_modules/node-sass/build’
3:44:33 AM: gyp ERR! build error
3:44:33 AM: gyp ERR! stack Error: make failed with exit code: 2
3:44:33 AM: gyp ERR! stack at ChildProcess.onExit (/opt/build/repo/node_modules/node-gyp/lib/build.js:262:23)
3:44:33 AM: gyp ERR! stack at ChildProcess.emit (node:events:390:28)
3:44:33 AM: gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
3:44:33 AM: gyp ERR! System Linux 5.4.129+
3:44:33 AM: gyp ERR! command “/opt/buildhome/.nvm/versions/node/v16.13.1/bin/node” “/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
3:44:33 AM: gyp ERR! cwd /opt/build/repo/node_modules/node-sass
3:44:33 AM: gyp ERR! node -v v16.13.1
3:44:33 AM: gyp ERR! node-gyp -v v3.8.0
3:44:33 AM: gyp ERR! not ok
3:44:33 AM: Build failed with error code: 1
3:44:33 AM: info Visit yarn install | Yarn for documentation about this command.
3:44:33 AM: Error during Yarn install
3:44:33 AM: Build was terminated: Build script returned non-zero exit code: 1
3:44:33 AM: Failing build: Failed to build site
3:44:33 AM: Finished processing build request in 4m31.949367668s

Hi @Senayson

When using node v16, you need to use node-sass v6+ (see package page on npm).

You can either update node-sass to the latest version in the project you are deploying (this may impact other modules also) or downgrade the node version via the NODE_VERSION environment variable to match the version of node-sass in the project.