I found this sentence:

> 死にそうな目にあった時、すぐに入りなおさないと。

I know what it means, but I can't understand the grammar behind "にあった時".
CC BY-SA 4.0
2021-06-03T19:39:34.860
86941
2021-06-05T04:47:39.303
2021-06-05T04:47:39.303
9831
42280
question
grammar verbs
Meaning of にある時? (「死にそうな目にあった時...」
[目に[遭]{あ}う](https://jisho.org/word/%E7%9B%AE%E3%81%AB%E3%81%82%E3%81%86) (not
**ある** ) is a set phrase meaning "to suffer/go through/'meet with' a bad
experience".

The 目 is often preceded by negative descriptions (esp. adjectives) such as
ひどい・苦しい・不快な, etc. In this case, it's just 死にそうな.

The 時 is inconsequential here; just a normal "when ～".
CC BY-SA 4.0
2021-06-03T20:03:06.713
86942
2021-06-03T20:03:06.713
78
86941
answer