You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
I'm getting the following error when using node-sass programmatically:
/path/to/project/node_modules/node-sass/lib/index.js:177
return options.includePaths.join(path.delimiter);
^
TypeError: Cannot read property 'join' of undefined
at buildIncludePaths (/path/to/project/node_modules/node-sass/lib/index.js:177:30)
at getOptions (/path/to/project/node_modules/node-sass/lib/index.js:195:26)
at Object.module.exports.render (/path/to/project/node_modules/node-sass/lib/index.js:282:17)
I tried to add some console log to the buildIncludePaths function, and seeing the following output
/** * Build an includePaths string * from the options.includePaths array and the SASS_PATH environment variable * * @param {Object} options * @api private */functionbuildIncludePaths(options){console.log(options.includePaths);console.log(options.includePaths||[]);options.includePaths=options.includePaths||[];console.log(options.includePaths);if(process.env.hasOwnProperty('SASS_PATH')){options.includePaths=options.includePaths.concat(process.env.SASS_PATH.split(path.delimiter));}returnoptions.includePaths.join(path.delimiter);}
I'm getting the following error when using node-sass programmatically:
I've created a reduced test case as follow:
with
main.scss
just containsI tried to add some console log to the
buildIncludePaths
function, and seeing the following outputWhen reporting an bug, you must provide this information:
npm -v
): 3.10.9node -v
): v7.1.0node -p process.versions
):node -p process.platform
):darwin
node -p process.arch
):x64
node -p "require('node-sass').info"
):npm ls node-sass
):[email protected]
The text was updated successfully, but these errors were encountered: