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

Error when building release #1

Closed
The-Mr-L opened this issue Jan 11, 2022 · 6 comments
Closed

Error when building release #1

The-Mr-L opened this issue Jan 11, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@The-Mr-L
Copy link

The-Mr-L commented Jan 11, 2022

Hi, I think you have to remove the '"./" +' from the dist path resolve. thank you

15:46:24 PM [vite-plugin-tauri] tauri-cli_windows.exe download Completed.
Error: Unable to find your web assets, did you forget to build your web app? Your distDir is set to ""../C:\Users\xxxx\projects\app\project\dist""

edit
well I tried removing it and now it builds but the ui is just blank not rendering. I am on windows 10. I tried debug build and same thing happens and no error messages in the ui or backend

@amrbashir
Copy link
Owner

amrbashir commented Jan 11, 2022

v0.1.11 is published with the fix. Unfortunately wasn't able to test it so let me know if it works.

@The-Mr-L
Copy link
Author

thx, now it builds. but it is just a white page app. this might not be a problem related to this project, so please do a test you self when you have time. I will debug it some more

@The-Mr-L
Copy link
Author

Okay it turns out doing the following fixes the problem

config: {
      build: {
        distDir: "../dist",//(await resolveConfig({}, "build", "production")).build.outDir
      }
    }

so now you know as well ;) I have not found the reason for this. but you must have had a reason not to hard code the path like this right?

@amrbashir amrbashir reopened this Jan 12, 2022
@amrbashir
Copy link
Owner

amrbashir commented Jan 12, 2022

I am currently away for another two weeks and can't test this. I am trying to fix this on my phone on the go.

I can't hardcode ../dist because users can change that in vite.config.js.

Anyways I will publish version v0.1.12 with the fix (hopefully).

Edit: v0.1.12 is published now

@amrbashir amrbashir reopened this Jan 12, 2022
@amrbashir amrbashir added the bug Something isn't working label Jan 12, 2022
@The-Mr-L
Copy link
Author

Thanks again :) it works now. Hope you have not stressed yourself too hard

@amrbashir
Copy link
Owner

Not at all, thanks for reporting back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants