Closed gfra54 closed 4 years ago
This is reported in #70 #71 #72. Node 8 is not supported. Node 10 is the oldest LTS now.
Fixed this with writeFileSync()
-> https://github.com/nystudio107/generator-craftplugin/commit/3d22216593d84ec809c6087115d5b5eeeb40312e
Since node 10, it is mandatory to pass a callback on fs.writefile() This was not the case on line 294 of the index.js file, so it was throwing the following error :
Callback must be a function. Received 'utf8'
I added an empty callback function to correct the problem. It works now. Feel free to let me know if I made any mystake. Thank you for ,your work, and have a nice day.