Closed gnoesiboe closed 4 years ago
I don't think this is due to my or jpmartinez extension.
I haven't used plops load
feature yet, but looking at their docs it appears your config should be similar to the following:
module.exports = function (plop) {
plop.load('@freshheads/project-tools');
};
// in your "@freshheads/project-tools" npm module you should have your package.json "main" point to "/build/plop/plopfile.js"
@SamKirkland The package.json
main is not pointed to /build/plop/plopfile.js
, as this repository contains more then just plop stuff. But I don't think that's the problem. I removed this line and replaced with inline generators and it still didn't work.
In VSCode, when I right click a folder, and choose: 'New File from Plop Template', I get the folowing error:
At the exact path mentioned above, a
plopfile.js
resides with contents:Can you tell me why this not working? Am I overlooking something? Many thanks in advance for your answer!