Skip to content

vuepress project cannot be in some folder name start with n #642

Closed
@jingzhe

Description

@jingzhe

Bug report

Version

0.11.0

Steps to reproduce

  • Create a vuepress project under a folder name start with "n" in windows computer, for example c:\new\mydoc
  • try to build the code: npm run docs:build
  • Error:
    (undefined) ./node_modules/vuepress/lib/app/.temp/override.styl
    Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
    ModuleBuildError: Module build failed (from ./node_modules/stylus-loader/index.js):
    Error: C:\new\mydoc\web\node_modules\vuepress\lib\app.temp\override.styl:1:74
    1| @import("C:\new\mydoc\docs\.vuepress\override.styl")
    -------------------------------------------------------------------------------^

failed to locate @import file C:
ew\mydoc\web\docs\.vuepress\override.styl

  • seems that vuepress cannot handle escape "\n" in correct way in Windows. I didn't test in Mac and Linux, I think it should be fine.

What is expected?

"npm run docs:build" should build in any folder name

What is actually happening?

"npm run docs:build" building failed if the folder name start with "n"

Other relevant information

  • Your OS: Windows 7
  • Node.js version: v9.2.0
  • Browser version: Chrome Version 65.0.3325.181
  • Is this a global or local install? local install
  • Which package manager did you use for the install? npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions