-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cannot access 'DefaultTheme' before initialization #1210
Comments
get the same error when build it works fine on dev |
didn't use third party lib still get this error |
引入第三方组件库方式建议参考 vitepress-template |
有项目地址吗? |
you can try to bump up you template to alpha8 I think you will get this error |
Your project version is 1.0.0-alpha.4, try using 1.0.0-alpha.8 你的项目版本号和描述不一致,请注意看下描述。 |
不,经过我的测试,在 alpha8 版本中,构建会有错误,可以看下: |
that's why we talk about here |
应该是版本问题 先使用 alpha4 版本比较稳定一些 |
https://github.com/Sepush/envd-docs/tree/up |
MRE: brc-dd/vp-default-theme-bug
Describe the bug
I want to use element-plus.
I refer to the issue 603 and brc-dd/vitepress-element-plus-demo
It works in 1.0.0-alpha.4, but building in 1.0.0-alpha.8 gives an error
build error:
ReferenceError: Cannot access 'DefaultTheme' before initialization
Reproduction
In 1.0.0-alpha.8 version,create a file
.vitepress\theme\index.js
Expected behavior
No error in building
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: