Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

vue-cli-plugin-tauri does not have a generator #24

Closed
mainrs opened this issue Apr 19, 2021 · 3 comments
Closed

vue-cli-plugin-tauri does not have a generator #24

mainrs opened this issue Apr 19, 2021 · 3 comments

Comments

@mainrs
Copy link

mainrs commented Apr 19, 2021

Describe the bug
My current project uses yarn v2 with pnp enabled. Running vue add tauri results in this output. I also manually ran vue invoke to try to install it that way

$ vue add tauri
 WARN  There are uncommitted changes in the current repository, it's recommended to commit or stash them first.
? Still proceed? Yes

📦  Installing vue-cli-plugin-tauri...

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @vue/babel-plugin-jsx@npm:1.0.5 doesn't provide @babel/core (p60e01), requested by @babel/plugin-syntax-jsx
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 342ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 528ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 491ms
➤ YN0000: Done with warnings in 2s 682ms
✔  Successfully installed plugin: vue-cli-plugin-tauri

Plugin vue-cli-plugin-tauri does not have a generator to invoke

$ vue invoke tauri
 WARN  There are uncommitted changes in the current repository, it's recommended to commit or stash them first.
? Still proceed? Yes
 ERROR  Error: Plugin vue-cli-plugin-tauri does not have a generator.
Error: Plugin vue-cli-plugin-tauri does not have a generator.
    at invoke ($HOME/.config/yarn/global/node_modules/@vue/cli/lib/invoke.js:55:11)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

Environment (please complete the following information):

  • vue-cli-plugin-tauri version : I guess latest? I didn't specify one.
  • other vue plugins used: none
  • (if possible) link to your repo: I can't upload it, I'm sorry.
  • output from npx tauri info/yarn tauri info:
$ yarn tauri info
Usage Error: Couldn't find a script named "tauri".

yarn run [--inspect] [--inspect-brk] <scriptName> ...

Additional context
Add any other context about the problem here.

@mainrs
Copy link
Author

mainrs commented Apr 19, 2021

I could solve it by temporarily switching back to the old behaviour that uses node_modules, running vue add tauri and enabling pnp again:

# .yarnrc.yml
nodeLinker: node-modules

@nklayman
Copy link
Member

nklayman commented Apr 20, 2021

This is an issue with Vue CLI, not this plugin. See vuejs/vue-cli#2850 for more details. Vue CLI doesn't yet support yarn pnp, but when it does I will reopen this if it is still a problem.

@mainrs
Copy link
Author

mainrs commented Apr 21, 2021

Thanks for letting me know!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants