Skip to content

Commit

Permalink
docs: Add installation note for Next.js (#3263)
Browse files Browse the repository at this point in the history
This adds a note for Next.js users, who (unintuitively) must configure babel even if their project uses typescript.
  • Loading branch information
phoenixeliot authored May 29, 2024
1 parent a81274a commit 4666972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ For verification insert this piece of code at the beginning of your sources (eg.
if (!new class { x }().hasOwnProperty('x')) throw new Error('Transpiler is not configured correctly');
```

Note that for Next.js you must [customize Babel](https://nextjs.org/docs/advanced-features/customizing-babel-config) instead of TypeScript, even if your project is set up to use TypeScript.

## MobX on older JavaScript environments

By default, MobX uses proxies for optimal performance and compatibility. However, on older JavaScript engines `Proxy` is not available (check out [Proxy support](https://kangax.github.io/compat-table/es6/#test-Proxy)). Examples of such are Internet Explorer (before Edge), Node.js < 6, iOS < 10, Android before RN 0.59, or Android on iOS.
Expand Down

0 comments on commit 4666972

Please sign in to comment.