Error : Cannot resolve binding \"vite\" from the container #4452
Answered
by
RomainLanz
benjibenoit
asked this question in
Help
-
Describe the bugHello, [17:11:31.722] ERROR (1120): Cannot resolve binding "vite" from the container
request_id: "afh501ia8xdjqpml0fb32s7p"
x-request-id: "afh501ia8xdjqpml0fb32s7p"
err: {
"type": "RuntimeException",
"message": "Cannot resolve binding \"vite\" from the container",
"stack":
RuntimeException: Cannot resolve binding "vite" from the container
at createError (C:\devs\node_modules\.pnpm\@[email protected]\node_modules\@adonisjs\fold\src\resolver.ts:246:46)
at resolveFor (C:\devs\node_modules\.pnpm\@[email protected]\node_modules\@adonisjs\fold\src\resolver.ts:404:11)
at make (C:\devs\node_modules\.pnpm\@[email protected]\node_modules\@adonisjs\fold\src\resolver.ts:443:17)
at make (C:\devs\node_modules\.pnpm\@[email protected]\node_modules\@adonisjs\fold\src\container.ts:191:34)
at file:///C:/devs/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@[email protected]_m553ty72nql5b3i5zgzf2n3kym/node_modules/@adonisjs/inertia/build/providers/inertia_provider.js:30:45
"name": "RuntimeException",
"status": 500,
"code": "E_RUNTIME_EXCEPTION"
}
I created a new project from scratch and it works. I don't know what I did wrong 😕 @Julien-R44 asked : Reproduction repoNo repo, as this is a company project. |
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Mar 11, 2024
Replies: 1 comment 8 replies
-
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, you need the edge provider too, since you are not building an API.
https://docs.adonisjs.com/guides/views-and-templates#using-edge