-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] String.prototype.split called on null or undefined #445
Comments
Thanks for your feeedback! It helps me a lot. In my case I added this in my package.json :
|
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 |
Thank you!
Work for me |
I got the same problem. In this case I solved it adding inquirer 9.3.5 as peer dependency. |
`[ERROR] String.prototype.split called on null or undefined` plopjs/plop#445
Issue #9 seems to be a consequence of plopjs/plop#445. As a temporary workaround, as suggested in that issue's comments, I'm hard-coding the 9.3.5 version of `inquirer` in `package.json`, which should fix the issue for now. If and when Plop and/or Inquirer fix the root cause, this temporary fix here should be reverted and a newer minimum version of `plop` should be required in the `package.json` file. Fixes #9.
* Add new site templates * Fix opening curly bracket * Fix templates * Show docs * Add workaround for plop issue plopjs/plop#445
I rolled back plop in my project to the latest v3 version |
this worked |
In my case, I added this to my "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:SBoudrias/Inquirer.js@ec78662
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:
The text was updated successfully, but these errors were encountered: