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
First, thanks for building a much-needed libSass wrapper for metalsmith.
Unfortunately, I am having an issue getting it set up.
I haven't had an opportunity to dig in, but gulp-metalsmith seems to work with every other plugin I have tried.
With metalsmith-sass, there is an error:
Message:
Arguments to path.join must be strings
Stack:
TypeError: Arguments to path.join must be strings
at Object.posix.join (path.js:488:13)
at compileSass (/Users/justin/workspace/gh-release-manager/node_modules/metalsmith-sass/lib/index.js:121:33)
at Ware.<anonymous> (/Users/justin/workspace/gh-release-manager/node_modules/wrap-fn/index.js:45:19)
at next (/Users/justin/workspace/gh-release-manager/node_modules/ware/lib/index.js:85:20)
at Ware.run (/Users/justin/workspace/gh-release-manager/node_modules/ware/lib/index.js:88:3)
at Object.run (/Users/justin/workspace/gh-release-manager/node_modules/gulp-metalsmith/lib/metalsmith.js:25:36)
This appears to be the context (lib/index.js:111):
/** * Looks up different key names on `metalsmith` to support * old versions (< v1) of Metalsmith. At some point, I will remove * support for < v1 and remove the key lookups */vardirectory=metalsmith.dir||metalsmith._directory,source=metalsmith._src||metalsmith._source,basePath=path.join(directory,source);
Both directory and source end up being null. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Sure. I have a CLI and node interface that both end up programmatically triggering gulp build. That build task uses gulp-metalsmith to performs several operations. This code emulates a simplified version of the workflow:
First, thanks for building a much-needed
libSass
wrapper formetalsmith
.Unfortunately, I am having an issue getting it set up.
I haven't had an opportunity to dig in, but gulp-metalsmith seems to work with every other plugin I have tried.
With
metalsmith-sass
, there is an error:This appears to be the context (
lib/index.js:111
):Both
directory
andsource
end up being null. Any help would be greatly appreciated.The text was updated successfully, but these errors were encountered: