Skip to content

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

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

Closed
2 tasks done
dousybox opened this issue Jun 11, 2019 · 1 comment
Closed
2 tasks done

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

dousybox opened this issue Jun 11, 2019 · 1 comment

Comments

@dousybox
Copy link

dousybox commented Jun 11, 2019

  • 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.

@dousybox dousybox changed the title [Bug report]vuepress unexpected sfc building [Bug report]vuepress unexpected .vue files building Jul 3, 2019
@dousybox
Copy link
Author

This bug is fixed in #1705
Using the siteConfig.patterns=[**/*.md] can make the build process work properly.

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

No branches or pull requests

1 participant