vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 922 forks source link

mac os 启动后一片空白 #1397

Closed Ivorzk closed 10 months ago

Ivorzk commented 10 months ago

Description

mac 安装依赖没有报错,启动后一片空白

windows 运行正常,mac 无法正常运行

windows normal

mac os exception

package.json

{
  "name": "docs",
  "version": "1.0.0",
  "description": "project document",
  "main": "index.js",
  "scripts": {
    "dev": "vuepress dev ./",
    "build": "vuepress build ./"
  },
  "author": "ivorzk@qq.com",
  "license": "MIT",
  "dependencies": {
    "@vuepress/plugin-search": "^2.0.0-beta.66",
    "vuepress": "^2.0.0-beta.66"
  }
}

vuepress.config.ts

import { defineUserConfig, defaultTheme } from 'vuepress'
// import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { searchPlugin } from '@vuepress/plugin-search'

export default defineUserConfig({
  lang: 'zh-CN',
  title: 'ext-ui',
  description: 'ext-ui',
  base: '/ext-ui/',
  plugins: [
    searchPlugin({})
  ],
  theme: defaultTheme({
    navbar: [
      {
        text: '开发指南',
        link: '/guide'
      },
      {
        text: '组件',
        link: '/components'
      },
      {
        text: '更新日志',
        link: '/change-log'
      }
    ]
  })
})

md 文件

image

启动

image

预览

image

控制台

image

Reproduction

https://v2.vuepress.vuejs.org/zh/

Used Package Manager

yarn

System Info

➜  Local:   http://localhost:8080/ext-ui/
  ➜  Network: http://192.168.100.41:8080/ext-ui/
  ➜  Network: http://198.18.0.1:8080/ext-ui/
Failed to load url /Users/user/work/longtimeproject/ext-ui/docs/.vuepress/.temp/internal/layoutComponents (resolved id: /Users/user/work/longtimeproject/ext-ui/docs/.vuepress/.temp/internal/layoutComponents) in /Users/user/work/longtimeproject/ext-ui/docs/node_modules/@vuepress/plugin-search/node_modules/@vuepress/client/dist/chunk-V3MKNX2O.js. Does the file exist?
Mister-Hope commented 10 months ago

Reproduction

https://v2.vuepress.vuejs.org/zh/

?

github-actions[bot] commented 10 months ago

Hello @Ivorzk. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 7 days.

Mister-Hope commented 10 months ago

Check https://github.com/vuepress/vuepress-next/issues/1195