Skip to content

Source map option breaks the build #70

Description

@Pixelatex

This is my command:

"sass:build": "node-sass-chokidar src/style/scss -o src/style/css --source-map",

The error it outputs:

var sourceMapIsDirectory = options.sourceMapOriginal.indexOf('.map', options.sourceMapOriginal.length - 4) === -1 && isDirectory(options.sourceMapOriginal);
                                                         ^

TypeError: options.sourceMapOriginal.indexOf is not a function
    at getOptions (/Users/xx/Repositories/sb-admin-panel-2.0/node_modules/node-sass-chokidar/bin/node-sass-chokidar:207:58)
    at Object.<anonymous> (/Users/xx/Repositories/sb-admin-panel-2.0/node_modules/node-sass-chokidar/bin/node-sass-chokidar:439:16)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:618:3

Anyone who can help me with this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions