3e51ddb8af
* Run prettier over packages/**/*.js * Run prettier over packages/**/*.ts * Run prettier over examples * Remove tslint * Run prettier over examples * Run prettier over all markdown files * Run prettier over json files
9 lines
330 B
Markdown
9 lines
330 B
Markdown
# No Router Instance
|
|
|
|
#### Why This Error Occurred
|
|
|
|
During SSR you might have tried to access a router method `push`, `replace`, `back`, which is not supported.
|
|
|
|
#### Possible Ways to Fix It
|
|
|
|
Move any calls to router methods to `componentDidMount` or add a check such as `typeof window !== 'undefined'` before calling the methods
|