Closed mperezsc closed 2 years ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Description:
Web application is shown without the assets that should come from Vite. I see unstyled and static HTML. Browser console output indicates that CORS policy is blocking them. I am aware that this, or similar issues have been arised before, but not using Laragon as server ecosystem. Some of the solutions presented have also been tried without success.
Interestingly, the error is not reproduced in another PC. Let me develop a bit this point. Application was developed in PC A. App was using Laravel mix and switched to Vite. Everything works fine in PC A. Then, app is installed (via composer and NPM installs) in PC B. Problem arises in PC B. As far as I know, PC A and PC B use the same configuration. Versions at the begining of the issue correspond to PC B
Steps To Reproduce:
From a working application, install App in another machine via composer and NPM.
I add some info that may be useful: vite.config.js:
composer.json:
package.json:
Vite directive at
:hot file content
Thanks for the support