We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01cc89c + 5bf6270 commit 6fb6e88Copy full SHA for 6fb6e88
ja/faq/window-document-undefined.md
@@ -5,12 +5,12 @@ description: Nuxt.js で window または document が undefined のときは?
5
6
# window または document が undefined のときは?
7
8
-このエラーはサーバーサイドレンダリングに起因しています。あるリソースをクライアントサイドでのみインポートしたいときは `process.BROWSER_BUILD` 変数を使う必要があります。
+このエラーはサーバーサイドレンダリングに起因しています。あるリソースをクライアントサイドでのみインポートしたいときは `process.browser` 変数を使う必要があります。
9
10
例えば .vue ファイルに次のように書きます:
11
12
```js
13
-if (process.BROWSER_BUILD) {
+if (process.browser) {
14
require('external_library')
15
}
16
```
0 commit comments