Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was 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

@jeandat

Description

@jeandat

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
livesp-front@3.11.2 
├─┬ @angular-devkit/build-angular@0.13.0
│ └── UNMET OPTIONAL DEPENDENCY node-sass@4.11.0
└── node-sass@4.13.0 

❯ yarn list --pattern node-sass
yarn list v1.19.2
├─ @angular-devkit/build-angular@0.13.0
│  └─ node-sass@4.11.0
└─ node-sass@4.13.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions