Skip to content

[Bug report]vuepress unexpected .vue files building #1651

Closed
@dousybox

Description

@dousybox
  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

# clone reproduction repo
git clone https://github.com/dousybox/vuepress-unexpected-SFC-building && cd vuepress-unexpected-SFC-building

# install dependencies
npm i

# run docs:build
npm run docs:build

What is expected?

Success! Generated static files in docs.

What is actually happening?

Building error with a long error message:

too long do not paste
see the reproduce repo

In short, it mean that the component can not be found.

Other relevant information

  • My VuePress version is higher than 1.0.0-alpha.47, the following is the output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: macOS 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  Binaries:
    Node: 10.14.2 - /usr/local/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 75.0.3770.80
    Firefox: Not Found
    Safari: 12.1.1
  npmPackages:
    @vuepress/core:  1.0.1 
    @vuepress/theme-default:  1.0.1 
    vuepress: ^1.0.1 => 1.0.1 
  npmGlobalPackages:
    vuepress: Not Found

This problem is only repetition in vuepress-1.x.

Every thing is ok in vuepress-0.x, you can checkout the 0.14.11 branch of reproduction repo.

The problem is that vuepress trying to build an irrelevant vue component.
this only repetition in build mode, it's ok in dev mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions