Skip to content

Missing components and assets #11

@denyncrawford

Description

@denyncrawford

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions