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

Missing components and assets #11

Open
denyncrawford opened this issue Mar 9, 2021 · 0 comments
Open

Missing components and assets #11

denyncrawford opened this issue Mar 9, 2021 · 0 comments

Comments

@denyncrawford
Copy link

denyncrawford commented Mar 9, 2021

An update of rollup-build-plugin has just been launched and I had to update it manually because some methods are not supported by esbuild anymore and the version that comes in the preset does not work.

I had my app running with vite 1 with an old preset of vite-electron-quick and when I reinstalled the node_modules there were all kinds of problems, but I solved it by installing and adapting my code with a new npx create-vite-electron, up to this point everything is fine, dev mode works and when I build everything seems fine... but actually the app does not load some assets and components even when they exist in the unpacked directory.

These are the files that my app is triying to load in:
imagen

These are the failed and successful requests:
imagen

I have realized that the routes that fail are all relative and those that load are absolute:

Failing: file:///assets/duration.c3d062a9.js
Loading:file:///C:/Users/denyncrawford/Documents/proyectos/guillotine/dist/win-unpacked/resources/app/dist/render/assets/Auth.9a0064a5.js

Finally, here are some of my built assets and they are not even half, which are not being loaded in the view:
imagen

This is wat I get when I try to push a route that is not being loaded:

image

I think it has something to do with esbuild or @vue/compiler-rfc but I don't think it is this last one because I was using the same version before.

Versions:

rollup-plugin-esbuild: 3.0.0
vite: latest
@vue/compiler-sfc: 3.0.7
vue: 3.0.7
electron: ^11.0.0

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