Open Seb33300 opened 1 year ago
The way you are handling assets path is incorrect and it is not possible to build the project properly.
For example: https://github.com/crater-invoice/crater/blob/05d5ce26fdd8d9466009163444e944259bc0cc2a/resources/scripts/components/base/BaseFileUploader.vue#L565
Return this error:
As indicated in Laravel documentation, you replace URL by:
const imgUrl = new URL('../../../static/img/default-avatar.jpg', import.meta.url)
I created a PR to fix this issue: https://github.com/crater-invoice/crater/pull/1223 It also add the ability to use the ASSET_URL config option.
The way you are handling assets path is incorrect and it is not possible to build the project properly.
For example: https://github.com/crater-invoice/crater/blob/05d5ce26fdd8d9466009163444e944259bc0cc2a/resources/scripts/components/base/BaseFileUploader.vue#L565
Return this error:![image](https://user-images.githubusercontent.com/915273/236277529-576f4eec-755e-4b2c-9a54-ee4ddede8c6e.png)
As indicated in Laravel documentation, you replace URL by: