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 10 crashes with custom importer #2606

@KaboomFox

Description

@KaboomFox
  • NPM version (npm -v):
    6.7.0
  • Node version (node -v):
    v10.0.0
  • Node Process (node -p process.versions):
  node: '10.0.0',
  v8: '6.6.346.24-node.5',
  uv: '1.20.2',
  zlib: '1.2.11',
  ares: '1.14.0',
  modules: '64',
  nghttp2: '1.29.0',
  napi: '3',
  openssl: '1.1.0h',
  icu: '61.1',
  unicode: '10.0',
  cldr: '33.0',
  tz: '2018c' }
  • Node Platform (node -p process.platform):
    darwin
  • Node architecture (node -p process.arch):
    x64
  • node-sass version (node -p "require('node-sass').info"):
node-sass       4.11.0  (Wrapper)       [JavaScript]
libsass         3.5.4   (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass):
/Users/xxxx/repos/xxxxx
└── [email protected]

When encountering a syntax, or compilation issue:

const _sass$renderSync = sass.renderSync({
    data: content,
    includePaths: [_path.default.dirname(filePath)],
    importer: function importer(url) {
      if (url[0] === '~') {
        url = path.resolve('node_modules/', url.substr(1));
      }
      return {file: url};
    }
  });

Gives me:

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalTryCatch::~FatalTryCatch() [/usr/local/bin/node]
 3: v8::V8::ToLocalEmpty() [/usr/local/bin/node]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions