Skip to content

[Bug] Uncaught TypeError: Failed to construct 'URL': Invalid URL #212

@dongivan

Description

@dongivan

Describe the problem you confuse

2.0 template with vite3 build error while using Node.js API in renderer process

There are some codes which should be compiled to import.meta.url, and they will be compiled to {}.url if vite (and @vitejs/plugin-vue) is upgraded to version 3 and Node.js API is enabled in the renderer process (by setting renderer to {} of the plugin vite-plugin-electron).
Maybe this has the same reason for the issue #210 ?

Errors

Uncaught TypeError: Failed to construct 'URL': Invalid URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions