Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

node-sass 4.13 incompatible with latest node 12 version (Utf8Value) #2794

Closed
jeandat opened this issue Nov 26, 2019 · 6 comments
Closed

node-sass 4.13 incompatible with latest node 12 version (Utf8Value) #2794

jeandat opened this issue Nov 26, 2019 · 6 comments

Comments

@jeandat
Copy link

jeandat commented Nov 26, 2019

Overview

Using latest version of node-sass with latest version of node 12 fail with this error:

/Users/jeandat/.node-gyp/12.13.0/include/node/v8.h:3046:5: note: candidate constructor not viable: no known conversion from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value' for 1st argument
    Utf8Value(const Utf8Value&) = delete;
    ^
/Users/jeandat/.node-gyp/12.13.0/include/node/v8.h:3039:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    Utf8Value(Isolate* isolate, Local<v8::Value> obj);
    ^
1 error generated.

Full error log

Trace

Context

❯ npm -v
6.12.0

But I'm using yarn:
❯ yarn -v
1.19.2

❯ node -v
v12.13.0

❯ node -p process.versions
{
  node: '12.13.0',
  v8: '7.7.299.13-node.12',
  uv: '1.32.0',
  zlib: '1.2.11',
  brotli: '1.0.7',
  ares: '1.15.0',
  modules: '72',
  nghttp2: '1.39.2',
  napi: '5',
  llhttp: '1.1.4',
  http_parser: '2.8.0',
  openssl: '1.1.1d',
  cldr: '35.1',
  icu: '64.2',
  tz: '2019a',
  unicode: '12.1'
}

❯ node -p process.platform
darwin

❯ node -p process.arch
x64

❯ node -p "require('node-sass').info"
node-sass       4.13.0  (Wrapper)       [JavaScript]
libsass         3.5.4   (Sass Compiler) [C/C++]

❯ npm ls node-sass
[email protected] 
├─┬ @angular-devkit/[email protected]
│ └── UNMET OPTIONAL DEPENDENCY [email protected]
└── [email protected] 

❯ yarn list --pattern node-sass
yarn list v1.19.2
├─ @angular-devkit/[email protected]
│  └─ [email protected]
└─ [email protected]
@nschonni
Copy link
Contributor

We actually build and test with this combination in CI. It's likely that you're running into uses somewhere with the combination of Yarn and NVM handling native modules at all, rather than anything particularly with node-sass. the errro line is coming from core Node headers

@jeandat
Copy link
Author

jeandat commented Nov 28, 2019

We actually build and test with this combination in CI

Are you testing with yarn too?

@saper
Copy link
Member

saper commented Nov 28, 2019

It seem to me is that the compile error occurs in /Users/jeandat/Developer/jeandat/liveaction/project-eyelo-ng2/node_modules/@angular-devkit/build-angular/node_modules/node-sass/bui ld/config.gypi which contains node-sass 4.11 and not 4.13.

Y

@jeandat
Copy link
Author

jeandat commented Nov 29, 2019

I'm going to migrate to angular 9 when it is released which will upgrade @angular-devkit/build-angular dependency. Thus if problem persist with angular 9 I will post an update. Thanks.

@cclauss
Copy link

cclauss commented Mar 20, 2020

What version of node-gyp is being used? The error log above says:

gyp info using [email protected]

Does upgrading to [email protected] change things? https://github.com/nodejs/node-gyp/releases

@jdbranham
Copy link

What version of node-gyp is being used? The error log above says:

gyp info using [email protected]

Does upgrading to [email protected] change things? https://github.com/nodejs/node-gyp/releases

Didn't help for me. But downgrading node to 10 did.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants