You want to alias the resources/js folder to @
It looks like your folder name is using /resources/assets/js instead of resources/js
I always just use or reference Breeze with Inertia when working with Inertia. It sets up all the boilerplate quickly: https://laravel.com/docs/9.x/starter-kits#breeze-and-inertia
Here is the webpack.mix.js file it generates:
mix.js('resources/js/app.js', 'public/js')
.react()
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
require('autoprefixer'),
])
.alias({
'@': 'resources/js',
});