We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.11.0
failed to locate @import file C: ew\mydoc\web\docs\.vuepress\override.styl
"npm run docs:build" should build in any folder name
"npm run docs:build" building failed if the folder name start with "n"
The text was updated successfully, but these errors were encountered:
Thanks for your reporting, but I don't have windows computer, it there anyone could help me to sync with it?
Sorry, something went wrong.
@ulivz quick solution: lib/prepare/index.js
lib/prepare/index.js
const overridePath = path .resolve(sourceDir, '.vuepress/override.styl') .replace(/[\\]+/g, '/')
and also:
const stylePath = path .resolve(sourceDir, '.vuepress/style.styl') .replace(/[\\]+/g, '/')
Like that normalize-path
Thanks to notiv-nt & ulivz, problem solved. Are you going to release this bug fix?
@jingzhe does the workaround from @notiv-nt work for you? If yes, could you open a PR for that? Thanks.
fix: normalize override file path in windows (#692) (close: #642)
9537c2c
Successfully merging a pull request may close this issue.
Bug report
Version
0.11.0
Steps to reproduce
(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
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
The text was updated successfully, but these errors were encountered: