-
I get errors while deploying. Somehow the reflex deploy statement tries to delete .web/_static/server but it is nog empty. See output below. My command is reflex deploy --no-interactive -k electudetranslate -r fra and then some environment variables. Creating Production Build failed with exit code 1
> export-sitemap
> next build && next-sitemap
Linting and checking validity of types ...
▲ Next.js 14.0.1
Creating an optimized production build ...
✓ Compiled successfully
Collecting page data ...
Generating static pages (0/3) ...
✓ Generating static pages (3/3)
Finalizing page optimization ...
Collecting build traces ...
> Build error occurred
[Error: ENOTEMPTY: directory not empty, rmdir '/Users/hp/proj/reflextranslate/.web/_static/server'] {
errno: -66,
code: 'ENOTEMPTY',
syscall: 'rmdir',
path: '/Users/hp/proj/reflextranslate/.web/_static/server'
}
Run with --loglevel debug for the full log.
Creating Production Build: ━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━ 56% 5/9 0:00:11
Unable to export due to: 1``` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Thanks for reporting, we will look into it. So it does work for you if you retry? Can you see if running just |
Beta Was this translation helpful? Give feedback.
-
Yes it happens too when I just run I suspect it has something to do with interference with the app running on localhost. If I first stop the |
Beta Was this translation helpful? Give feedback.
@hpharmsen Ah got it that makes sense now. The website reloads whenever there's changes in the
.web
directory so doing an export while it's running may mess things up. There's probably a workaround for this, but I'd suggest just stopping the app before exporting or deploying as quick fix.