Skip to content

Fails to start on Windows #12

@nielsvanvelzen

Description

@nielsvanvelzen

I tried upgrading one of my projects to vuepress-next today and unfortunately the dev server does not work on Widows. Running the same command in WSL works perfectly fine.

Version

Vuepress 2.0.0-alpha.5

Reproduce

Run yarn vuepress dev in a Vuepress project on Windows.

Logs

$ D:\<path-to-project>\node_modules\.bin\vuepress dev
info Initializing VuePress and preparing data...
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output.path: The provided value "D:/<path-to-project>/.vuepress/dist" is not an absolute path!
   -> The output directory as **absolute path** (required).
    at webpack (D:\<path-to-project>\node_modules\webpack\lib\webpack.js:31:9)
    at Object.dev (D:\<path-to-project>\node_modules\@vuepress\bundler-webpack\lib\dev\createDev.js:29:22)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async dev (D:\<path-to-project>\node_modules\@vuepress\cli\lib\commands\dev\dev.js:42:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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