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
Error: Build failed with 8 errors:
functions/api.js:2:23: ERROR: Could not resolve "./routes/auth.route.js"
functions/api.js:3:23: ERROR: Could not resolve "./routes/users.route.js"
functions/api.js:4:23: ERROR: Could not resolve "./routes/posts.route.js"
functions/api.js:5:26: ERROR: Could not resolve "./routes/comments.route.js"
functions/api.js:6:23: ERROR: Could not resolve "./routes/likes.route.js"
...
at failureErrorWithLog (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1651:15)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1059:25
at runOnEndCallbacks (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1486:45)
at buildResponseToResult (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1057:7)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1086:16
at responseCallbacks. (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:704:9)
at handleIncomingPacket (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:764:9)
at Socket.readFromStdout (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:680:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
Error: Build failed with 8 errors:
functions/api.js:2:23: ERROR: Could not resolve "./routes/auth.route.js"
functions/api.js:3:23: ERROR: Could not resolve "./routes/users.route.js"
functions/api.js:4:23: ERROR: Could not resolve "./routes/posts.route.js"
functions/api.js:5:26: ERROR: Could not resolve "./routes/comments.route.js"
functions/api.js:6:23: ERROR: Could not resolve "./routes/likes.route.js"
...
at failureErrorWithLog (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1651:15)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1059:25
at runOnEndCallbacks (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1486:45)
at buildResponseToResult (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1057:7)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1086:16
at responseCallbacks. (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:704:9)
at handleIncomingPacket (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:764:9)
at Socket.readFromStdout (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:680:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
Describe the bug
Error: Build failed with 8 errors:
functions/api.js:2:23: ERROR: Could not resolve "./routes/auth.route.js"
functions/api.js:3:23: ERROR: Could not resolve "./routes/users.route.js"
functions/api.js:4:23: ERROR: Could not resolve "./routes/posts.route.js"
functions/api.js:5:26: ERROR: Could not resolve "./routes/comments.route.js"
functions/api.js:6:23: ERROR: Could not resolve "./routes/likes.route.js"
...
at failureErrorWithLog (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1651:15)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1059:25
at runOnEndCallbacks (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1486:45)
at buildResponseToResult (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1057:7)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1086:16
at responseCallbacks. (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:704:9)
at handleIncomingPacket (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:764:9)
at Socket.readFromStdout (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:680:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 124.0.6367.209
Edge: Chromium (123.0.2420.97)
Steps to reproduce
make a express app
use netlify dev
Configuration
No response
Environment
netlify dev
Error: Build failed with 8 errors:
functions/api.js:2:23: ERROR: Could not resolve "./routes/auth.route.js"
functions/api.js:3:23: ERROR: Could not resolve "./routes/users.route.js"
functions/api.js:4:23: ERROR: Could not resolve "./routes/posts.route.js"
functions/api.js:5:26: ERROR: Could not resolve "./routes/comments.route.js"
functions/api.js:6:23: ERROR: Could not resolve "./routes/likes.route.js"
...
at failureErrorWithLog (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1651:15)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1059:25
at runOnEndCallbacks (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1486:45)
at buildResponseToResult (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1057:7)
at C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:1086:16
at responseCallbacks. (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:704:9)
at handleIncomingPacket (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:764:9)
at Socket.readFromStdout (C:\Users\HP\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\esbuild\lib\main.js:680:7)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 124.0.6367.209
Edge: Chromium (123.0.2420.97)
The text was updated successfully, but these errors were encountered: