2019-03-07 17:13:38 +01:00
|
|
|
# No Router Instance
|
|
|
|
|
|
|
|
#### Why This Error Occurred
|
|
|
|
|
2019-05-29 13:57:26 +02:00
|
|
|
During SSR you might have tried to access a router method `push`, `replace`, `back`, which is not supported.
|
2019-03-07 17:13:38 +01:00
|
|
|
|
|
|
|
#### Possible Ways to Fix It
|
|
|
|
|
2019-05-29 13:57:26 +02:00
|
|
|
Move any calls to router methods to `componentDidMount` or add a check such as `typeof window !== 'undefined'` before calling the methods
|