Build failed because of webpack errors #81686
Replies: 2 comments
-
@ alias not working --> Set paths in tsconfig.json |
Beta Was this translation helpful? Give feedback.
-
@Eduaigen2025 did you get this working - the most likely scenario here is wrong tsconfig.json alias setup. Otherwise, if this is happening in a production environment, maybe you forgot to commit these new files, and then pulled in your build environment? Share some more of how this is failing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
root@edugenai:/var/www/app# npm run build
▲ Next.js 15.3.3
Creating an optimized production build ...
Failed to compile.
./src/app/request-course/page.tsx
Module not found: Can't resolve '@/ai/flows/send-contact-email'
https://nextjs.org/docs/messages/module-not-found
./src/app/school-license/page.tsx
Module not found: Can't resolve '@/ai/flows/send-contact-email'
https://nextjs.org/docs/messages/module-not-found
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions