Yarn - Node Sass does not yet support my current environment

后端 未结 6 1325
春和景丽
春和景丽 2021-01-07 16:48

I\'m using Sage WordPress starter theme - https://github.com/roots/sage.

From today when I run yarn build (webpack --progress --config /webpack.config.js) appears th

6条回答
  •  耶瑟儿~
    2021-01-07 17:24

    For me, this solution works. here are the steps:

    1. go to node-sass folder (it can be "../node_modules/node-sass/src" or somewhere else, for example for Angular it is located in "../node_modules/@angular-devkit/build-angular/node_modules/node-sass/src") you can find the location in logs:
    2. open create_string.cpp
    3. change v8::String::Utf8Value string(value); to v8::String::Utf8Value string(v8::Isolate::GetCurrent(), value);

    if you couldn't find "node-sass" folder rerun "npm install" and when you see node-sass logs in the console, terminate the process with ctrl+c.

提交回复
热议问题