maoberlehner / node-sass-magic-importer

Custom node-sass importer for selector specific imports, module importing, globbing support and importing files only once.
MIT License
292 stars 28 forks source link

ERR_INVALID_ARG_TYPE: The "path" argument must be of type string. #198

Closed nachtfunke closed 5 years ago

nachtfunke commented 5 years ago

Hello!

I have found a few already resolved issues for this specific error, but they do not fix our problem unfortunately.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
    at validateString (internal/validators.js:125:11)
    at Object.dirname (path.js:1260:5)
    at Object.importer (/Users/path/packages/sass/node_modules/node-sass-magic-importer/dist/index.js:58:38)
    at options.importer (/Users/path/packages/sass/node_modules/node-sass/lib/index.js:336:31)

For some weird reason, all of this works without a problem on my machine, but fails on my colleague's machine. Is this maybe related to a specific Node Version?

maoberlehner commented 5 years ago

Could be Node version related, could be OS related, could be a bug. Hard to say without further information.

maoberlehner commented 5 years ago

Closing this in favor of re-opening: https://github.com/maoberlehner/node-sass-magic-importer/issues/187