build error ReferenceError: window is not defined #515
-
Description Incident
clientAppEnhance.js import './fit.js'
import { defineClientAppEnhance } from '@vuepress/client'
import d from './components/d.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import index from '../../package/index'
import '../../package/style.scss'
import mycode from './components/mgcode.vue'
export default defineClientAppEnhance(({ app, router, siteData }) => {
app.component('d', d)
app.component('mycode', mycode)
app.use(ElementPlus)
app.use(index)
app.use(router)
}) fit.js
I don't know that the problem may be in webpack or the clientAppEnhance.js config.js |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Mar 1, 2022
Replies: 1 comment
-
This issue is related to #585, and you can get a solutio there. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is related to #585, and you can get a solutio there.