it worked with yarn dev, but when yarn build it not worked
Dec 26, 2022
10
Level 1
Unable to locate file in Vite manifest: resources/js/Pages/Welcome.vue.
the problem occurs when i execute the command yarn build
- Version:
PHP 8.1.7Laravel 9.45.1 - My
vite.config.js
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
});
- in my
public/build/manifest.json
{
//...
"resources/js/app.js": {
"file": "assets/app-55b752c4.js",
"src": "resources/js/app.js",
"isEntry": true,
"dynamicImports": [
"resources/js/Pages/Auth/ConfirmPassword.vue",
"resources/js/Pages/Auth/ForgotPassword.vue",
"resources/js/Pages/Auth/Login.vue",
"resources/js/Pages/Auth/Register.vue",
"resources/js/Pages/Auth/ResetPassword.vue",
"resources/js/Pages/Auth/VerifyEmail.vue",
"resources/js/Pages/Dashboard.vue",
"resources/js/Pages/Profile/Edit.vue",
"resources/js/Pages/Profile/Partials/DeleteUserForm.vue",
"resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue",
"resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue",
"_Welcome-0432c34d.js"
],
"css": [
"assets/app-9dd22145.css"
]
}
}
Please or to participate in this conversation.