Open ryangrahamnc opened 4 months ago
Thanks for your feeedback! It helps me a lot.
In my case I added this in my package.json :
"resolutions": {
"inquirer": "9.3.5"
},
Thanks a lot!
thanks
I created a generator that is executed through npx. It doesn't seem like either "overrides" or "resolutions" is respected by npx so I'm still getting the error String.prototype.split called on null or undefined
Thank you!
"overrides": {
"node-plop": {
"inquirer": "9.3.5"
}
},
Work for me
I created a generator that is executed through npx. It doesn't seem like either "overrides" or "resolutions" is respected by npx so I'm still getting the error
String.prototype.split called on null or undefined
I got the same problem. In this case I solved it adding inquirer 9.3.5 as peer dependency.
"peerDependencies": { "inquirer": "9.3.5" }
I rolled back plop in my project to the latest v3 version
Thank you!
"overrides": { "node-plop": { "inquirer": "9.3.5" } },
Work for me
this worked
In my case, I added this to my package.json
:
"pnpm": {
"overrides": {
"inquirer": "9.3.5"
}
On a fresh install (when using a tool I made using plop), I'm getting the above error when an action is about to run. I was able to mess with things to get a stacktrace:
It looks like its because this inquire.js v9 commit removed the default of
''
for the path: https://github.com/SBoudrias/Inquirer.js/commit/ec786623d5094eee357b912cfaab56b4ddd66f05 I dont know if that was on purpose. I also haven't checked into the full trace to see which function plop is calling.I figure there's a few possible options to get this working:
"inquirer": "9.3.5"
)In the meantime, I've been able to bypass the problem by adding an override into my own tool's package.json: