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
Use that plugin in a preset and try to create a project using it
What is expected?
The function is called without error
What is actually happening?
This error occurs:
ERROR TypeError: obs.pipe is not a function
TypeError: obs.pipe is not a function
at PromptUI.run (/usr/local/lib/node_modules/@vue/cli/node_modules/inquirer/lib/ui/prompt.js:33:24)
at Object.promptModule [as prompt] (/usr/local/lib/node_modules/@vue/cli/node_modules/inquirer/lib/inquirer.js:28:22)
at Creator.resolvePlugins (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:382:36)
at Creator.create (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:196:32)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async create (/usr/local/lib/node_modules/@vue/cli/lib/create.js:72:3)
Version
4.1.2
Environment info
Steps to reproduce
Create a plugin with a
prompt.js
file that exports a function, eg:(from the docs https://cli.vuejs.org/dev-guide/plugin-dev.html#prompts)
Use that plugin in a preset and try to create a project using it
What is expected?
The function is called without error
What is actually happening?
This error occurs:
I think it's because there is no check on
prompts
type on this line https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/lib/Creator.js#L384The text was updated successfully, but these errors were encountered: