Level 102
Can you show your vite config file?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello friends! I just created a brand new project with Inertia/React. My page component is not rendering and I'm seeing this in the console:
TypeError: Failed to resolve module specifier "http://::1:5173/@react-refresh". Relative references must start with either "/", "./", or "../".
Any help would be greatly appreciated. Thanks!
@evelynfredin like this
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';
export default defineConfig({
server: {
host: 'localhost',
},
plugins: [
laravel({
input: 'resources/js/app.tsx',
}),
react(),
],
});
Please or to participate in this conversation.