Skip to content

fix(cli): fix module resolve of preset generator #5968

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

fangbinwei
Copy link
Collaborator

@fangbinwei fangbinwei commented Oct 15, 2020

Fixes #5965

Resolve module maybe failed based on $TMPDIR/path_to_preset/generator/template/public/ (example in issue #5965)

If it fails, try to find the module in the project we created.
Install dependencies for preset which contains generator and package.json.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:
None

@fangbinwei
Copy link
Collaborator Author

It seems CLI should try to install dependencies, if remote preset contains generator.

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

Successfully merging this pull request may close these issues.

"Cannot find module '@vue/cli-service/...' from ..." when create project with remote preset that edited existing templates
3 participants