-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
535 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: Cannot find module ‘xxxxxx’ | ||
author: '@appinn.com F124nk1e' | ||
--- | ||
|
||
::: danger | ||
Cannot find module ‘xxxxxx’ | ||
::: | ||
|
||
<details> <summary>报错详情</summary> | ||
|
||
``` | ||
Error: Cannot find module 'fs-extra' | ||
Require stack: | ||
- D:\transfer_redmi\AndroidQQ_MIUI\Shmily-Get-MobileQQ-Andriod\decode\utils\db.js | ||
- D:\transfer_redmi\AndroidQQ_MIUI\Shmily-Get-MobileQQ-Andriod\tools\exportTable.js | ||
at Module._resolveFilename (node:internal/modules/cjs/loader:1047:15) | ||
at Module._load (node:internal/modules/cjs/loader:893:27) | ||
at Module.require (node:internal/modules/cjs/loader:1113:19) | ||
at require (node:internal/modules/cjs/helpers:103:18) | ||
at Object.<anonymous> (D:\transfer_redmi\AndroidQQ_MIUI\Shmily-Get-MobileQQ-Andriod\decode\utils\db.js:8:12) | ||
at Module._compile (node:internal/modules/cjs/loader:1226:14) | ||
at Module._extensions..js (node:internal/modules/cjs/loader:1280:10) | ||
at Module.load (node:internal/modules/cjs/loader:1089:32) | ||
at Module._load (node:internal/modules/cjs/loader:930:12) | ||
at Module.require (node:internal/modules/cjs/loader:1113:19) { | ||
code: 'MODULE_NOT_FOUND', | ||
requireStack: [ | ||
'D:\\transfer_redmi\\AndroidQQ_MIUI\\Shmily-Get-MobileQQ-Andriod\\decode\\utils\\db.js', | ||
'D:\\transfer_redmi\\AndroidQQ_MIUI\\Shmily-Get-MobileQQ-Andriod\\tools\\exportTable.js' | ||
] | ||
} | ||
Node.js v18.14.0 | ||
``` | ||
|
||
</details> | ||
|
||
##### 解决办法 | ||
|
||
`nodejs` 没有安装依赖, 参考 [setup-nodejs](./nodejs.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createContentLoader } from 'vitepress'; | ||
import path from 'path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const files = path.join(path.dirname(fileURLToPath(import.meta.url)), './*.md'); | ||
console.log('🚀 ~ file: list.data.ts:6 ~ files:', files); | ||
|
||
export default createContentLoader('guide/setup-runtime/Q&A-detail/*.md', { | ||
includeSrc: true, // include raw markdown source? | ||
render: true, // include rendered full page HTML? | ||
excerpt: true, // include excerpt? | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: 简短的报错关键词 | ||
author: '作者' | ||
--- | ||
|
||
::: danger | ||
Cannot find module ‘xxxxxx’ // 详细的报错关键词 ,可以同 title | ||
::: | ||
|
||
<details> <summary>报错详情</summary> | ||
|
||
``` | ||
// 报错信息贴在这 | ||
``` | ||
|
||
</details> | ||
|
||
##### 解决办法 | ||
|
||
// 去外面转转~ 回来就好了. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Q & A | ||
|
||
> 如需新增, 请新建 `docs/guide/setup-runtime/Q&A-detail/{新问题}.md` | ||
> | ||
> 内容参考模板 `docs/guide/setup-runtime/Q&A-detail/template.md.tpl` | ||
## 常见问题 | ||
|
||
<script setup lang="ts"> | ||
import { data } from './Q&A-detail/list.data.ts' | ||
|
||
</script> | ||
|
||
<div> | ||
<details v-for="d of data" class="qa-list"> | ||
<summary class="title"> | ||
<h4 class="link" target="_blank" > {{ d.frontmatter.title }}</h4> | ||
<span class="author">by {{ d.frontmatter.author }}</span> | ||
</summary> | ||
<div class="detail" v-html="d.html"></div> | ||
</details> | ||
</div> | ||
|
||
<style lang="sass"> | ||
.qa-list | ||
.title | ||
display: flex | ||
&::before | ||
content: '>' | ||
margin-right: 10px | ||
.link | ||
flex: 1 | ||
cursor: pointer | ||
.author | ||
font-size: 12px | ||
.detail | ||
margin-left: 20px | ||
background: aliceblue | ||
padding: 5px 10px | ||
border-bottom-left-radius: 10px | ||
border-bottom-right-radius: 10px | ||
</style> |
Oops, something went wrong.