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
All the context you would need to get this running and understand the problem is in the README.md
This is the error I am getting from the package when I run the application and go to http://127.0.0.1:8000/foo:
GET http://[::1]:5173/resources/js/Pages/Foo.vue net::ERR_ABORTED 404 (Not Found)
index.js:4 Uncaught (in promise) Error: Page not found: ./Pages/Foo.vue
at resolvePageComponent (index.js:4:15)
at resolve (app.js:13:24)
at r (createInertiaApp.ts:34:54)
at j2 (createInertiaApp.ts:38:24)
at app.js:11:1
connecteev
changed the title
Can the inertia-plugin be used by a laravel app to render a vue file from a laravel package?
Can the inertia-plugin be used by a laravel app to render a vue file from a locally hosted laravel package?
Jul 20, 2023
This is more of a question about how this plugin can be used. Here's a clean repo running Laravel, that isolates a problem I am having:
https://github.com/connecteev/laravel_dummy_code_for_package_customization
This Laravel app makes use of a package that is running Inertia + Vue.js, and uses Vite for asset bundling. Link: https://github.com/connecteev/laravel_dummy_code_for_package_customization/tree/main/_LOCAL_PACKAGES/keenbrain_dummy_package/
All the context you would need to get this running and understand the problem is in the README.md
This is the error I am getting from the package when I run the application and go to http://127.0.0.1:8000/foo:
I see the same problem when I go to a different route: http://127.0.0.1:8000/portal
In both cases, the Page (Vue file) cannot be rendered, even though it exists in the package: https://github.com/connecteev/laravel_dummy_code_for_package_customization/tree/main/_LOCAL_PACKAGES/keenbrain_dummy_package/resources/js/Pages
Can this Inertia-Plugin be used to fix this problem? If so, can you point me to how that can be done?
The text was updated successfully, but these errors were encountered: