Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets management is broken #1222

Open
Seb33300 opened this issue May 4, 2023 · 1 comment · Fixed by invoice-crater/crater#12
Open

Assets management is broken #1222

Seb33300 opened this issue May 4, 2023 · 1 comment · Fixed by invoice-crater/crater#12

Comments

@Seb33300
Copy link

Seb33300 commented May 4, 2023

The way you are handling assets path is incorrect and it is not possible to build the project properly.

For example:

const imgUrl = new URL('/img/default-avatar.jpg', import.meta.url)

Return this error:
image

As indicated in Laravel documentation, you replace URL by:

const imgUrl = new URL('../../../static/img/default-avatar.jpg', import.meta.url)
@Seb33300
Copy link
Author

Seb33300 commented May 4, 2023

I created a PR to fix this issue: #1223
It also add the ability to use the ASSET_URL config option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant