-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@internal/routes' #81
Comments
麻烦告诉下我使用的 vuepress 以及 vuepress-theme-plume 的版本,node 版本、操作系统、以及 vuepress 的配置信息。如果有使用 typescript, 也给一下 tsconfig.json 的信息 当前给出的错误信息我不好判断是哪里出了问题。 |
使用的软件版本如下: import {defineUserConfig} from 'vuepress'
import {viteBundler} from '@vuepress/bundler-vite'
import {plumeTheme} from 'vuepress-theme-plume'
export default defineUserConfig({
// 设置默认语言
lang: 'zh-CN',
theme: plumeTheme({
avatar: {
url:'./images/momoko.png',
name: 'xxx',
description: '不要做让自己后悔的事',
circle: true
},
navbar: [
{text: '首页', link: '/', icon: 'gravity-ui:house'},
{text: '博客', link: '/blog/', icon: 'gravity-ui:square-article'},
{text: '标签', link: '/blog/tags/', icon: 'gravity-ui:tag'},
{text: '归档', link: '/blog/archives/', icon: 'gravity-ui:archive'},
]
}),
bundler: viteBundler()
}) 感谢百忙之中抽空出来帮我查看问题~ |
看起来都很正常。另外需要确认的是,在构建产生报错后,在 如果方便的话,在不涉及隐私下,是否可以将这个项目做一些精简处理,形成一个可重现该问题的 最小项目包,打包发送给我,我试着在本地重现下问题好方便排查具体原因。(请包含 |
感谢您的帮助。 |
其实我并不推荐升级到 |
我在您在另一个issue提到这个问题了,我暂且先使用这个版本过渡一下,期待vuepress和您的后续更新了。 |
在进行 npm run docs:build 的时候,构建的最后阶段会提示这个错误,我前端能力有限,不知道问题出在哪里,大佬能不能帮忙看一下?
目前的情况是,我进行 npm run docs:dev 时,本地测试一切正常了,就是构建时候出现这个问题。
详细的报错如下:
✔ Compiling with vite - done in 18.15s
✖ Rendering 44 pages - failed in 33ms
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@internal/routes' imported from /....../my_blog/node_modules/@vuepress/client/dist/chunk-FJNK2BS7.js
at packageResolve (node:internal/modules/esm/resolve:853:9)
at moduleResolve (node:internal/modules/esm/resolve:910:20)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
The text was updated successfully, but these errors were encountered: