Skip to content

Commit a51f98c

Browse files
authored
Merge pull request #743 from leinad59/patch-1
docs(guide): fix typo
2 parents 9b43d3a + f9a663b commit a51f98c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guide/troubleshooting.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-
7171

7272
或者,通过将其导入 Keychain Access 应用程序并将您的证书的信任更新为“始终信任”。
7373

74-
### 431 Request Header Fields Too Large {#431-request-header-fields-too-large}
74+
### 431 Request Header Fields Too Large {#_431-request-header-fields-too-large}
7575

7676
当服务器或 WebSocket 服务收到一个较大的 HTTP 头,该请求可能会被遗落并且会显示下面这样的警告。
7777

@@ -131,9 +131,9 @@ import './Foo.js' // 应该为 './foo.js'
131131
132132
这是因为 Vite 不会自动 polyfill Node.js 的内建模块。
133133

134-
我们推荐你不要再浏览器中使用 Node.js 模块以减小包体积,尽管你可以为其手动添加 polyfill。如果该模块是被某个第三方库(这里意为某个在浏览器中使用的库)导入的,则建议向对应库提交一个 issue。
134+
我们推荐你不要在浏览器中使用 Node.js 模块以减小包体积,尽管你可以为其手动添加 polyfill。如果该模块是被某个第三方库(这里意为某个在浏览器中使用的库)导入的,则建议向对应库提交一个 issue。
135135

136-
### Syntax Error / Type Error {#syntax-error-type-error-happens}
136+
### 出现 Syntax Error Type Error {#syntax-error-type-error-happens}
137137

138138
Vite 无法处理、也不支持仅可在非严格模式(sloppy mode)下运行的代码。这是因为 Vite 使用了 ESM 并且始终在 ESM 中使用 [严格模式](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode)
139139

0 commit comments

Comments
 (0)