-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Vue warn]: Error in render: "RangeError: Maximum call stack size exceeded" #2656
Comments
同样遇到这个问题... |
Repo: https://github.com/Messiahhh/writings |
Hi i just found another my repo has this problem. Repo: https://github.com/Messiahhh/blog.git [vuepress] No matching page found for sidebar item "/frontend/其他"
[Vue warn]: Error in render: "TypeError: Cannot read property 'match' of undefined"
TypeError: Cannot read property 'match' of undefined
at getHash (node_modules/@vuepress/theme-default/util/index.js:13:21)
at isActive (node_modules/@vuepress/theme-default/util/index.js:47:19)
at render (node_modules/@vuepress/theme-default/components/SidebarLink.vue:25:0)
at renderWithStyleInjection (node_modules/vue-loader/lib/runtime/componentNormalizer.js:83:0)
at createFunctionalComponent (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3052:30)
at createComponent (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3225:12)
at _createElement (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3415:15)
at createElement (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3347:10)
at vm._c (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3484:42)
at 1.server-bundle.js:756:492
at Proxy.renderList (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:2624:16)
at Proxy.SidebarLinksvue_type_template_id_ca47ed18_render (node_modules/@vuepress/theme-default/components/SidebarLinks.vue?41e6:1:152)
at VueComponent.Vue._render (/home/travis/build/Messiahhh/blog/node_modules/vue/dist/vue.runtime.common.dev.js:3538:22)
at resolve (/home/travis/build/Messiahhh/blog/node_modules/vue-server-renderer/build.dev.js:8415:27)
at waitForServerPrefetch (/home/travis/build/Messiahhh/blog/node_modules/vue-server-renderer/build.dev.js:8287:3)
at renderComponentInner (/home/travis/build/Messiahhh/blog/node_modules/vue-server-renderer/build.dev.js:8426:3)
(node:5094) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
at matchRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1677:5)
at match (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1555:13)
at redirect (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1615:14)
at _createRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1654:14)
at match (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1556:18)
at redirect (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1615:14)
at _createRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1654:14)
at match (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1556:18)
at redirect (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1615:14)
at _createRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1654:14)
at match (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1556:18)
at redirect (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1615:14)
at _createRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1654:14)
at match (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1556:18)
at redirect (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1615:14)
at _createRoute (/home/travis/build/Messiahhh/blog/node_modules/vue-router/dist/vue-router.common.js:1654:14) |
同样遇到这个问题,,, |
It seemed that some other people also met my problem. BTW, my code was working well before and i've never change it. It just broken suddenly. |
指定了vue-router版本为3.4.5后就可以了
指定了vue-router版本为3.4.5后就可以了 |
Yep i think it's problem of vue-router. vuejs/vue-router#3337 |
话说我应该怎么修改vuepress所引用的vue-router的版本= =?求指导 |
package.json里面"dependencies"加上"vue-router": "3.4.5" |
我试过了,确实有效,感谢~之前没成功是操作上的失误,自己写成了 |
问下,我这边构建是不报错了,但浏览器控制台还没看到错误。你那边有碰到吗 |
我这边指定完版本后,开发环境和生产环境控制台都不会报错诶 |
对于修改vue-router依旧没有修复问题的人,可以尝试使用npm i安装包,我之前使用yarn一直报错,更换npm之后build正常了。 |
Vuepress build failed caused by the latest `vue-router` refer to vuejs/vuepress#2656
Vuepress build failed caused by the latest `vue-router` refer to vuejs/vuepress#2656
Vuepress build failed caused by the latest `vue-router` refer to vuejs/vuepress#2656
I am getting this issue while triaging #2670 Long story short I am trying to add custom sidebar items through theme/util/index.js let tags = []
for (let page of site.pages) {
for (let index in page.frontmatter.tags) {
const tag = page.frontmatter.tags[index]
var result = tags.find(t => {
return t.title.toLowerCase().trim() === tag.toLowerCase().trim()
});
if (result == undefined)
{
let finalTag = {};
finalTag.title = tag.toLowerCase().trim();
finalTag.collapsable = true;
finalTag.children = [];
finalTag.children.push(page.regularPath.replace(".html",""));
tags.push(finalTag);
}
else
{
if (result.children != undefined)
{
result.children.push(page.regularPath.replace(".html",""));
}
}
}
} I than append the list of new sidebar items to resolve them let newSidebarConfig = sidebarConfig.concat(recentNode).concat(tags);
const { base, config } = resolveMatchingConfig(regularPath, newSidebarConfig) When I run
I can get around this by changing the size of npm running
But I than get the issue I am dealing with on that other issue. I believe these issues are connected in someway. Here are my devDependencies "devDependencies": {
"@vuepress/plugin-google-analytics": "^1.7.1",
"vuepress": "^1.7.1",
"vuepress-plugin-janitor": "^1.0.0",
"vuepress-plugin-rss": "^2.0.0",
"yaml-front-matter": "^4.1.0",
"vue-router": "^3.4.7"
} Happy to help triage in anyway I can. |
Try it with My blog has nealy 700 pages, and it will take 6GB spare space to build. Vuepress is bad with build process. From the source code, it will generate a lot of shallow copy with frontmatter, page object(including slug, frontmatter, headings and some other info) and even siteData copy. The build process is using a newer copy of these objects while referencing some parts of the old ones, so the old ones will move to "old space" instead of being gc off. I had opened issues about this problem, but now none of the core team is active contribuiting on V1. Hope @meteorlxy 's V2 can improve this problem. |
I can confirm that my build memory continuously grows as the project grows. Now my project has 1300+ pages, and it requires 6GB ( |
I have faced the same problem [Vue warn]: Error in render: "RangeError: Maximum call stack size exceeded" found in ---> |
After multiple searches I found that the issue was I was import the vue 2 times ( one in my html page, which I was unaware of ) and one in script of the html page, and hence this issue. |
当我的vuepress 的 md 文件名带空格时,也报了以上的错误,vercel部署时报错 Maximum call stack size exceeded 和 pageMeta is not defined |
我也是,把文件夹和文件里的空格删除后就正常了 |
You can try to delete all spaces in directory's name and filename, npm run build to testify |
Bug report
Steps to reproduce
What is expected?
What is actually happening?
Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: