Open receter opened 3 years ago
I did log some variables too:
// Resolve / reject the promise
if (childCompilation && childCompilation.errors && childCompilation.errors.length) {
var errorDetails = childCompilation.errors.map(function (error) {
return error.message + (error.error ? ':\n' + error.error : '');
}).join('\n');
reject(new Error('Child compilation failed:\n' + errorDetails));
} else if (err) {
reject(err);
} else {
console.log(childCompilation.assets);
console.log(childCompilation.assets[outputName].source());
console.log(outputName);
console.log('test');
resolve({
outputName: outputName,
stats: JSON.parse(childCompilation.assets[outputName].source())
});
}
Result:
{
'.iconstats.json': { source: [Function: source], size: [Function: size] }
}
⠀
.iconstats.json
test
You'll have more help if you put this issue on Gatsby repo, and like that you'll trigger a problem that they can relate on the doc.
I got the same issue with gatsby-plugin-favicon + gatsby v3. If it can help, I ended up using https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/ which handles favicon (+ other things) and works well with gatsby v3.
I updated my project to Gatsby 3 and can’t start the dev server unless I disable gatsby-plugin-favicon.
I am on Windows with WSL 2, this is the error that comes up if I try to start: