Skip to content

Improve error message when using --target lib and the entry file is missing #1051

Closed
@fjc0k

Description

@fjc0k

Version

3.0.0-beta.6

Reproduction link

https://github.com/fjc0k/vue-cli-lib-test

Steps to reproduce

  1. clone
  2. yarn
  3. yarn run build

What is expected?

build success

What is actually happening?

build failed with error:

This dependency was not found:

* ~entry in ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js

To install it, you can run: npm install --save ~entry

notice: the main.js file is not default

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions