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
I'm having an issue with asset reloading using npm run dev using Herd. if I run npm run build, everything works fine with herd hosted site. However, if I run npm run dev I receive "Failed to resolve module specifier "alpinejs". Relative references must start with either "/", "./", or "../". " error in the console. Assets are not loaded...this is on a fresh project with Laravel Breeze starter pack. This is on both HTTP and HTTPS enabled. I've attempted a few different vite.config suggestions...but not have helped thus far:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having an issue with asset reloading using npm run dev using Herd. if I run npm run build, everything works fine with herd hosted site. However, if I run npm run dev I receive "Failed to resolve module specifier "alpinejs". Relative references must start with either "/", "./", or "../". " error in the console. Assets are not loaded...this is on a fresh project with Laravel Breeze starter pack. This is on both HTTP and HTTPS enabled. I've attempted a few different vite.config suggestions...but not have helped thus far:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
],
refresh: true,
// detectTls: true,
})
]
// ,
// build: {
// watch: {
// include: ["resources/**"],
// },
// }
});
Beta Was this translation helpful? Give feedback.
All reactions