You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I specifically set outdir to './' because Inlang creates the messages inside that directory. I wanted it to generate files inside the root folder, like root/messages, but when I ran the project, the entire directory was wiped out and replaced with inlang-related files.
Caution
I ended up losing three days of work, around 3,000 lines of code.
I really like this library, but I strongly suggest adding a safety check or warning for this scenario to prevent other developers from facing the same issue.
I’m using a Vite + React app, and I added the following config:
I specifically set
outdirto'./'because Inlang creates the messages inside that directory. I wanted it to generate files inside the root folder, likeroot/messages, but when I ran the project, the entire directory was wiped out and replaced with inlang-related files.Caution
I ended up losing three days of work, around 3,000 lines of code.
I really like this library, but I strongly suggest adding a safety check or warning for this scenario to prevent other developers from facing the same issue.