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
I'm really not at all sure why this bug is happening, but when I run copy-template-dir (which uses readdirp) I get this:
/Users/swyx/Netlify/netlify-plugin-search-index/node_modules/copy-template-dir/node_modules/readdirp/readdirp.js:50
var api = require('./stream-api')();
^
TypeError: require(...) is not a function
at readdir (/Users/swyx/Netlify/netlify-plugin-search-index/node_modules/copy-template-dir/node_modules/readdirp/readdirp.js:50:48)
at /Users/swyx/Netlify/netlify-plugin-search-index/node_modules/copy-template-dir/index.js:33:16
at /Users/swyx/Netlify/netlify-plugin-search-index/node_modules/mkdirp/index.js:48:26
at callback (/Users/swyx/Netlify/netlify-plugin-search-index/node_modules/graceful-fs/polyfills.js:295:20)
at FSReqCallback.oncomplete (fs.js:167:5)
error Command failed with exit code 1.
I have checked and yes, stream-api.js is there, however what is unusual is that there are two module.exports that may be screwing things up:
I'm really not at all sure why this bug is happening, but when I run
copy-template-dir
(which uses readdirp) I get this:I have checked and yes,
stream-api.js
is there, however what is unusual is that there are two module.exports that may be screwing things up:however commenting them out doesnt seem to help at all!
anyone have any idea what the cause of this could be?
The text was updated successfully, but these errors were encountered: