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

yarn build fails on fresh dev install #12

Open
cmora-pe opened this issue Dec 9, 2022 · 0 comments
Open

yarn build fails on fresh dev install #12

cmora-pe opened this issue Dec 9, 2022 · 0 comments

Comments

@cmora-pe
Copy link

cmora-pe commented Dec 9, 2022

$ yarn build
yarn run v1.22.15
$ vite build
vite v2.6.14 building for production...
✓ 65 modules transformed.
[vite:asset-import-meta-url] ENOENT: no such file or directory, open 'C:\img\default-avatar.jpg'
file: C:/laragon/www/crater/resources/scripts/components/base/BaseFileUploader.vue

Seems to be related to:

function getDefaultAvatar() {
  const imgUrl = new URL('/img/default-avatar.jpg', import.meta.url)
  return imgUrl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant