Resolved, need to put public path in webpackConfig
Aug 2, 2021
2
Level 6
Inertia Chunk file path...
Trying Laravel 8 + Inertia Js, I have successfully done inertia set up the client /server side.
When trying to route the Vue component getting ChunkLoadError: Loading chunk.
I have configured the webpackConfig output in webpack file as:
.webpackConfig({ output: { chunkFilename: 'js/[name].js?id=[chunkhash]', } })
Compiling successfully but when hit the route chunkfile path is wrong. http://localhost/js/resources_js_Pages_landing_faq_vue.js ...
How to set the correct path for the chunk files ??
Please or to participate in this conversation.