Comments (5)
And another question:
in "vuepress-theme-hope": "v2.0.0-rc.2", https://bbruceyuan.com/post/2023 will show 404.
in "vuepress-theme-hope": "v2.0.0-rc.43", it will auto redirect to https://bbruceyuan.com/post/2023.html. It seems if a url does not match a right one, it will auto add .html
.
Is that a reasonable expectation?
from vuepress-theme-hope.
I think the first one is as you may unify the helper package, beta 30 plugins are requiring a minimum requirement of beta 30 helper.
We are actually not expecting users to use the helper package himself, but if he is using he should be aware of that situation.
from vuepress-theme-hope.
For the url part, we are improving our performance by converting our routes to visual routes, Which means we do not actually have any route now, So any links is now normalized to an expected format.
I am opening a pr to support clean url, you may review that if you are interested in it.
from vuepress-theme-hope.
I think the first one is as you may unify the helper package, beta 30 plugins are requiring a minimum requirement of beta 30 helper.
We are actually not expecting users to use the helper package himself, but if he is using he should be aware of that situation.
If I remove helper package
, It also needs --force
.
all configs there:
{
"name": "bbruceyuan.github.io",
"version": "1.0.0",
"description": "my blog source",
"main": "index.js",
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bbruceyuan/bbruceyuan.github.io.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/bbruceyuan/bbruceyuan.github.io/issues"
},
"homepage": "https://github.com/bbruceyuan/bbruceyuan.github.io#readme",
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.9",
"@vuepress/helper": "2.0.0-rc.28",
"@vuepress/plugin-feed": "^2.0.0-rc.30",
"@vuepress/plugin-google-analytics": "^2.0.0-rc.30",
"@vuepress/plugin-redirect": "^2.0.0-rc.30",
"@vuepress/plugin-sitemap": "^2.0.0-rc.30",
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.30",
"mathjax-full": "3.2.2",
"vue": "^3.4.27",
"vuepress": "2.0.0-rc.9",
"vuepress-plugin-search-pro": "2.0.0-rc.43",
"vuepress-theme-hope": "v2.0.0-rc.43"
}
}
The error messsage shows:
44 http fetch GET 200 https://registry.npmjs.org/@vuepress%2fbundler-webpack 1730ms (cache revalidated)
45 timing idealTree Completed in 4818ms
46 timing command:i Completed in 4822ms
47 verbose stack Error: could not resolve
47 verbose stack at PlaceDep.failPeerConflict (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:503:25)
47 verbose stack at new PlaceDep (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:157:21)
47 verbose stack at #buildDepStep (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:940:18)
47 verbose stack at async Arborist.buildIdealTree (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:203:7)
47 verbose stack at async Promise.all (index 1)
47 verbose stack at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:154:5)
47 verbose stack at async Install.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/install.js:153:5)
47 verbose stack at async module.exports (/opt/homebrew/lib/node_modules/npm/lib/cli-entry.js:61:5)
48 verbose cwd /Users/bytedance/work/person/blog/bbruceyuan.github.io
49 verbose Darwin 23.3.0
50 verbose node v21.7.3
51 verbose npm v10.5.0
52 error code ERESOLVE
53 error ERESOLVE could not resolve
54 error
55 error While resolving: [email protected]
55 error Found: [email protected]
55 error node_modules/vuepress
55 error dev vuepress@"^2.0.0-rc.9" from the root project
55 error peer vuepress@"2.0.0-rc.11" from @vuepress/[email protected]
55 error node_modules/@vuepress/plugin-feed
55 error dev @vuepress/plugin-feed@"^2.0.0-rc.30" from the root project
55 error 8 more (@vuepress/helper, @vuepress/plugin-google-analytics, ...)
55 error
55 error Could not resolve dependency:
55 error peer vuepress@"2.0.0-rc.9" from [email protected]
55 error node_modules/vuepress-plugin-search-pro
55 error dev vuepress-plugin-search-pro@"^2.0.0-rc.43" from the root project
55 error peerOptional vuepress-plugin-search-pro@"2.0.0-rc.43" from [email protected]
55 error node_modules/vuepress-theme-hope
55 error dev vuepress-theme-hope@"^v2.0.0-rc.43" from the root project
55 error
55 error Conflicting peer dependency: [email protected]
55 error node_modules/vuepress
55 error peer vuepress@"2.0.0-rc.9" from [email protected]
55 error node_modules/vuepress-plugin-search-pro
55 error dev vuepress-plugin-search-pro@"^2.0.0-rc.43" from the root project
55 error peerOptional vuepress-plugin-search-pro@"2.0.0-rc.43" from [email protected]
55 error node_modules/vuepress-theme-hope
55 error dev vuepress-theme-hope@"^v2.0.0-rc.43" from the root project
55 error
55 error Fix the upstream dependency conflict, or retry
55 error this command with --force or --legacy-peer-deps
55 error to accept an incorrect (and potentially broken) dependency resolution.
56 error
56 error
56 error For a full report see:
56 error /Users/bytedance/.npm/_logs/2024-05-19T06_19_32_168Z-eresolve-report.txt
57 verbose exit 1
58 timing npm Completed in 4966ms
59 verbose unfinished npm timer reify 1716099572312
60 verbose unfinished npm timer reify:loadTrees 1716099572314
61 verbose unfinished npm timer idealTree:buildDeps 1716099572371
62 verbose unfinished npm timer idealTree:node_modules/vuepress-plugin-search-pro 1716099572374
AND JUST NOW, what I said is a wrong message. It does works in github action and vercel. The output has no body content, ALL PAGES.
<!doctype html>
<html lang="zh-CN" data-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="generator" content="VuePress 2.0.0-rc.9" />
<meta name="theme" content="VuePress Theme Hope 2.0.0-rc.43" />
<style>
html {
background: var(--bg-color, #fff);
}
html[data-theme="dark"] {
background: var(--bg-color, #1d1e1f);
}
body {
background: var(--bg-color);
}
</style>
<script>
const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
const systemDarkMode =
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
document.documentElement.setAttribute("data-theme", "dark");
}
</script>
<meta property="og:url" content="https://bbruceyuan.com/introduction-to-computing-advertising/"><meta property="og:site_name" content="用代码打点酱油的 chaofa"><meta property="og:title" content="前言"><meta property="og:description" content="记录个人在学习 广告系统期间的知识"><meta property="og:type" content="website"><meta property="og:locale" content="zh-CN"><meta property="og:updated_time" content="2023-02-06T14:40:02.000Z"><meta property="article:author" content="bbruceyuan"><meta property="article:modified_time" content="2023-02-06T14:40:02.000Z"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"前言","description":"记录个人在学习 广告系统期间的知识"}</script><meta name="baidu-site-verification" content="codeva-6UT5nFOXMY"><link rel="alternate" type="application/rss+xml" href="https://bbruceyuan.com/rss.xml" title="用代码打点酱油的 chaofa RSS Feed"><link rel="icon" href="/img/icon.jpg"><title>前言 | 用代码打点酱油的 chaofa</title><meta name="description" content="记录个人在学习 广告系统期间的知识">
<link rel="preload" href="/assets/style-BYhXUtus.css" as="style"><link rel="stylesheet" href="/assets/style-BYhXUtus.css">
<link rel="modulepreload" href="/assets/app-B5jVu9zo.js"><link rel="modulepreload" href="/assets/index.html-CgEzF-fK.js"><link rel="modulepreload" href="/assets/plugin-vue_export-helper-DlAUqK2U.js">
<link rel="prefetch" href="/assets/index.html-CtnSLqhK.js" as="script"><link rel="prefetch" href="/assets/about.html-CJGAPLBt.js" as="script"><link rel="prefetch" href="/assets/blog-feed.html-Daf6pTwf.js" as="script"><link rel="prefetch" href="/assets/link.html-CzaLEF36.js" as="script"><link rel="prefetch" href="/assets/make-flomo-better.html-DdOF1L4d.js" as="script"><link rel="prefetch" href="/assets/ad-nums.html-Dn2ZK_13.js" as="script"><link rel="prefetch" href="/assets/quick-tutorial.html-BMoeGPc6.js" as="script"><link rel="prefetch" href="/assets/index.html-Dcux5RcC.js" as="script"><link rel="prefetch" href="/assets/python-type-challenge-advanced.html-CVKCK_pD.js" as="script"><link rel="prefetch" href="/assets/python-type-challenge-basic.html-BHnLyRjt.js" as="script"><link rel="prefetch" href="/assets/python-type-challenge-intermediate.html-C09NEt9A.js" as="script"><link rel="prefetch" href="/assets/raycast-tutorial-1.html-DXreNlWN.js" as="script"><link rel="prefetch" href="/assets/2020-year-summary.html-B70lqpjX.js" as="script"><link rel="prefetch" href="/assets/2021-year-summary.html-CY_oZrI8.js" as="script"><link rel="prefetch" href="/assets/2022-year-summary.html-Drm-poBE.js" as="script"><link rel="prefetch" href="/assets/2023-year-summary.html-Bb5wxeR4.js" as="script"><link rel="prefetch" href="/assets/11.html-BhYWD5Gp.js" as="script"><link rel="prefetch" href="/assets/12.html-DZ8WfOi0.js" as="script"><link rel="prefetch" href="/assets/13.html-BPI0rtqj.js" as="script"><link rel="prefetch" href="/assets/14.html-CqcXVP8q.js" as="script"><link rel="prefetch" href="/assets/16.html-S3RBh8ss.js" as="script"><link rel="prefetch" href="/assets/18.html-CacGfDl_.js" as="script"><link rel="prefetch" href="/assets/19.html-JKL5h_Tj.js" as="script"><link rel="prefetch" href="/assets/20.html-C64RHVnn.js" as="script"><link rel="prefetch" href="/assets/21.html-BlS3GZM7.js" as="script"><link rel="prefetch" href="/assets/22.html-D3h6I5xi.js" as="script"><link rel="prefetch" href="/assets/23.html-CgHhW2GM.js" as="script"><link rel="prefetch" href="/assets/24.html-2OCjt0gn.js" as="script"><link rel="prefetch" href="/assets/bai-fei-li-shang-jin-ji.html-DozO6IWw.js" as="script"><link rel="prefetch" href="/assets/hub-of-fu-lan-ke-yang.html-6n-2kMTv.js" as="script"><link rel="prefetch" href="/assets/27.html-CQcHehXb.js" as="script"><link rel="prefetch" href="/assets/blind-date-from-bruce.html-CimZQsOp.js" as="script"><link rel="prefetch" href="/assets/blind-date-from-miss-cui.html-C_15o47u.js" as="script"><link rel="prefetch" href="/assets/joke-with-miss-cui.html-B0eh23vV.js" as="script"><link rel="prefetch" href="/assets/how-i-met-bruce.html-WHqU8Qk6.js" as="script"><link rel="prefetch" href="/assets/life-influenced-by-point.html-m3hbUAbn.js" as="script"><link rel="prefetch" href="/assets/2020-emnlp-submition.html-GGGRXaTo.js" as="script"><link rel="prefetch" href="/assets/ten-years-after-the-college-entrance-examination.html-BILsail1.js" as="script"><link rel="prefetch" href="/assets/how-to-keep-mental-health-working-in-bytedance.html-Bdv3FvX3.js" as="script"><link rel="prefetch" href="/assets/1.html-D6nbTU2b.js" as="script"><link rel="prefetch" href="/assets/10.html-DM5hGGyv.js" as="script"><link rel="prefetch" href="/assets/17.html-Dol_Sgjr.js" as="script"><link rel="prefetch" href="/assets/2.html-D-01VZr_.js" as="script"><link rel="prefetch" href="/assets/29.html-COay5arg.js" as="script"><link rel="prefetch" href="/assets/3.html-Bx6El1w0.js" as="script"><link rel="prefetch" href="/assets/5.html-B2rTwylv.js" as="script"><link rel="prefetch" href="/assets/7.html-BPSxDIVM.js" as="script"><link rel="prefetch" href="/assets/8.html-BHp3bnY8.js" as="script"><link rel="prefetch" href="/assets/9.html-BSMOEv2q.js" as="script"><link rel="prefetch" href="/assets/404.html-fM4Bgord.js" as="script"><link rel="prefetch" href="/assets/index.html-DcnHHVN0.js" as="script"><link rel="prefetch" href="/assets/index.html-2xwISKba.js" as="script"><link rel="prefetch" href="/assets/index.html-tA-sklPK.js" as="script"><link rel="prefetch" href="/assets/index.html-DCglDccg.js" as="script"><link rel="prefetch" href="/assets/index.html-e25nuyCm.js" as="script"><link rel="prefetch" href="/assets/index.html-BhlSnLvJ.js" as="script"><link rel="prefetch" href="/assets/index.html-DWCY4XvA.js" as="script"><link rel="prefetch" href="/assets/index.html-Bv8vgG6J.js" as="script"><link rel="prefetch" href="/assets/index.html-BCnzTzE9.js" as="script"><link rel="prefetch" href="/assets/index.html-CelA9Kbv.js" as="script"><link rel="prefetch" href="/assets/index.html-Dsgzfb7M.js" as="script"><link rel="prefetch" href="/assets/index.html-Br37fZVt.js" as="script"><link rel="prefetch" href="/assets/index.html-QCbHUkRY.js" as="script"><link rel="prefetch" href="/assets/index.html-rjA1rW7V.js" as="script"><link rel="prefetch" href="/assets/index.html-vR5zFWKQ.js" as="script"><link rel="prefetch" href="/assets/index.html-DFhjV_Q8.js" as="script"><link rel="prefetch" href="/assets/index.html-CiD8MY_P.js" as="script"><link rel="prefetch" href="/assets/index.html-hVwRgT-J.js" as="script"><link rel="prefetch" href="/assets/index.html-BK5t-WYF.js" as="script"><link rel="prefetch" href="/assets/index.html-hasgXnaV.js" as="script"><link rel="prefetch" href="/assets/index.html-DM3L-Pse.js" as="script"><link rel="prefetch" href="/assets/index.html-B6yNsg4n.js" as="script"><link rel="prefetch" href="/assets/index.html-wnhU0_VL.js" as="script"><link rel="prefetch" href="/assets/index.html-BdjgqYt_.js" as="script"><link rel="prefetch" href="/assets/index.html-kpCwQLqE.js" as="script"><link rel="prefetch" href="/assets/index.html-D2Zez8Oo.js" as="script"><link rel="prefetch" href="/assets/index.html-C7ruPqRP.js" as="script"><link rel="prefetch" href="/assets/index.html-BC2VGJ8W.js" as="script"><link rel="prefetch" href="/assets/index.html-DgDj85pD.js" as="script"><link rel="prefetch" href="/assets/index.html-B9ccowjD.js" as="script"><link rel="prefetch" href="/assets/index.html-UuPm4UBa.js" as="script"><link rel="prefetch" href="/assets/index.html-W5QYgMxq.js" as="script"><link rel="prefetch" href="/assets/index.html-hXwj7WR4.js" as="script"><link rel="prefetch" href="/assets/giscus--_FS5kYt.js" as="script"><link rel="prefetch" href="/assets/photoswipe.esm-SzV8tJDW.js" as="script"><link rel="prefetch" href="/assets/SearchResult-Ccypb7Bg.js" as="script">
</head>
<body>
<div id="app"><!----></div>
<script type="module" src="/assets/app-B5jVu9zo.js" defer></script>
</body>
</html>
So is there any methods to solve it? thanks~
from vuepress-theme-hope.
The problem is that some of the official plugins are rc30, which requires rc11 of vuepress.
For now I would like to omit these kind of issue, as vuepress/core is releasing 2.0.0-rc.11, while the theme is requiring rc.9 of it.
Once I align the latest version of theme with vuepress/core, you can try again and I believe the problems will be solved.
Your current workaround should be reverting vuepress/core to rc9 and all official plugins to rc28, which santifies the theme requirement.
from vuepress-theme-hope.
Related Issues (20)
- [Feature Request] horizontal toc slot in non-PC layout HOT 3
- [Bug]手机 PDF 无法正常查看,Web 可以。 HOT 4
- [Feature Request] 侧边栏折叠目录增加默认展开或收起功能 HOT 1
- [Feature Request] 增加属性,控制正文是否显示图标 HOT 1
- [Bug] 手机端图片同比缩小之后看不清了 HOT 2
- [Feature Request] 博客主题根据最新修改日期排序文章 HOT 1
- Type issue in stackblitz:'"vuepress"' has no exported member 'defineUserConfig' HOT 2
- [Bug] Set the transparent navigation bar and some content be overwritten HOT 1
- [Bug] Uncaught runtime errors: × ERROR [object Event] at handleError (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:252:58) at eval (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:275:7) HOT 3
- [Feature Request]侧边栏支持增加链接。
- [Feature Request] 选项卡快速指引链接 HOT 1
- [Bug] 侧边栏折叠要点两次了 HOT 8
- [Bug] 网站链接如果直接访问带 # 的连接显示 404 HOT 12
- [Feature Request] 优化代码块样式,清除 `outline` 样式 HOT 1
- [Bug] toc z index with sidebar mask
- [Feature Request] support the same options in the navabar as in the sidebar HOT 1
- [Bug] iconify-icon dev tool warning after update to 2.0.0-rc.47 HOT 1
- [Bug] open docsearch with shortcuts HOT 1
- [Bug] failed to resolve dependency when upgrading from `2.0.0-rc.41` to `2.0.0-rc.48` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuepress-theme-hope.