Skip to content
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

Build doesn't support symbolic links #184

Closed
lukeromanowicz opened this issue Dec 16, 2020 · 1 comment · Fixed by #185
Closed

Build doesn't support symbolic links #184

lukeromanowicz opened this issue Dec 16, 2020 · 1 comment · Fixed by #185
Labels
bug Something isn't working build Related to the build system

Comments

@lukeromanowicz
Copy link
Contributor

lukeromanowicz commented Dec 16, 2020

Describe the bug
In dev mode symbolic links work just fine but building process fails with following errors:

$ vitepress build docs
vitepress v0.9.2
vite v1.0.0-rc.13
✓ building client + server bundles...
✖ rendering pages...
build error:
 TypeError: Cannot read property 'imports' of undefined
    at resolvePageImports (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/render.js:74:68)
    at Object.renderPage (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/render.js:35:12)
    at async Object.build (/home/lromanowicz/projects/vitepress-issues/node_modules/vitepress/dist/node/build/build.js:29:17)
error Command failed with exit code 1.

To Reproduce
Steps to reproduce the behavior:

  • add a directory with docs through a symbolic link

https://github.com/lukeromanowicz/vitepress-issues/tree/issue/building-not-supporting-symbolic-links

Expected behavior
Building supports symbolic links just like dev mode does.

System Info

  • vitepress version: 0.9.2
  • vite version: 1.0.0-rc.13
  • Node version: 14LTS
  • OS version: Ubuntu 20
@lukeromanowicz lukeromanowicz added the bug: pending triage Maybe a bug, waiting for confirmation label Dec 16, 2020
@posva posva added bug Something isn't working build Related to the build system and removed bug: pending triage Maybe a bug, waiting for confirmation labels Jan 4, 2021
@bowencool
Copy link

It seems that there is still this problem

▶ yarn build:docs
yarn run v1.22.10
$ vitepress build docs
vitepress v0.15.6
vite v2.4.1
✓ building client + server bundles...
⠋ rendering pages...
✖ rendering pages...
build error:
 TypeError: Cannot read property 'imports' of undefined
    at resolvePageImports (/Users/zhaobowen/mk/fe-infra/element++/node_modules/vitepress/dist/node/build/render.js:81:22)
    at Object.renderPage (/Users/zhaobowen/mk/fe-infra/element++/node_modules/vitepress/dist/node/build/render.js:35:12)
    at async Object.build (/Users/zhaobowen/mk/fe-infra/element++/node_modules/vitepress/dist/node/build/build.js:29:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working build Related to the build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants