3.0.0-rc.9 AWS Lambda SSR is broken with No match found for location with path "/images/icons/gear.png"
See original GitHub issueEnvironment
Nuxt project info: 13:45:19
- Operating System:
Darwin
- Node Version:
v16.15.1
- Nuxt Version:
3.0.0-rc.9
- Nitro Version:
0.5.0
- Package Manager:
npm@8.11.0
- Builder:
vite
- User Config:
nitro
,app
,server
,modules
,css
,build
- Runtime Modules:
@nuxtjs/tailwindcss@5.3.2
- Build Modules:
-
Reproduction
Describe the bug
My application is hosted as SSR with aws-lambda and worked fine with the rc-8 version. I upgraded today to rc-9 and it works locally when I test it. After deployment, the page is not loading and is throwing “Internal Server Error” When I check the AWS Lambda logs, it returns this error, "No match found for location with path “/images/icons/gear.png” and is causing the API gateway to return 502 error. API gateway return 502 error when lambda return a response which is different from what API gateway format .
I don’t have any images folder or gear.png file on my project and I’m guessing it is part of the Nuxt project.
Additional context
Same code works after deployment with rc-8 version.
Logs
2022-09-03T13:48:48.970-04:00 START RequestId: a8e6de3b-ebc4-497a-a71e-221747a1a283 Version: $LATEST
2022-09-03T13:48:48.989-04:00 2022-09-03T17:48:48.973Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:48.990-04:00 2022-09-03T17:48:48.990Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.009-04:00 2022-09-03T17:48:48.990Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.010-04:00 2022-09-03T17:48:49.009Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.269-04:00 2022-09-03T17:48:49.231Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.270-04:00 2022-09-03T17:48:49.270Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.289-04:00 2022-09-03T17:48:49.270Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.290-04:00 2022-09-03T17:48:49.290Z a8e6de3b-ebc4-497a-a71e-221747a1a283 WARN [Vue Router warn]: No match found for location with path "/images/icons/gear.png"
2022-09-03T13:48:49.671-04:00 END RequestId: a8e6de3b-ebc4-497a-a71e-221747a1a283
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Closing this as the issue is fixed in rc-10
When I downgraded to rc-8 it worked without any issues.