-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arguments to path.join must be string. #118
Comments
@jzvelc I suspect it is because of |
Well it is not, I tried running ts task alone and I get same error. I have tried all different configurations without success (even specifying src and outDir alone). |
cool. Thanks for that, I'll investigate |
@jzvelc have you found an easy way to reproduce this? |
This snippet at the top of your var oldJoin = path.join;
path.join = function () {
_.forEach(arguments, function (argument) {
if (typeof argument !== 'string') {
try {
console.log('why no string!'.red);
console.log('BAD path.join called', arguments);
throw new Error('why no string!');
} catch (ex) {
console.log(ex.stack);
}
}
});
return oldJoin.apply(path, arguments);
}; So the start of you /// <reference path="../defs/tsd.d.ts"/>
/// <reference path="./modules/interfaces.d.ts"/>
/*
* grunt-ts
* Licensed under the MIT license.
*/
// Typescript imports
var _ = require('underscore');
var path = require('path');
var fs = require('fs');
var oldJoin = path.join;
path.join = function () {
_.forEach(arguments, function (argument) {
if (typeof argument !== 'string') {
try {
console.log('why no string!'.red);
console.log('BAD path.join called', arguments);
throw new Error('why no string!');
} catch (ex) {
console.log(ex.stack);
}
}
});
return oldJoin.apply(path, arguments);
}; |
I have a stacktrace It seems targetName is Seems like a grunt bug : gruntjs/grunt#994 (comment) |
I'll assign this issue to myself if I work on it. PRs welcome |
worth mentioning based on the analysis that it should have no bad side effect. Its simply failing when |
- Needed because of #118 being nasty even in build
fixed in v1.11.5 |
This is what I did because |
I am unable to implement grunt-ts in my grunt due to following error when running task:
Compiling...
Warning: Arguments to path.join must be strings Use --force to continue.
I have tried almost everything without success.
The text was updated successfully, but these errors were encountered: