Skip to content

yarn build:win on electron-vite4 vue typescript updated template return error #60

@zihao1985

Description

@zihao1985

new ver is out!

Originally posted by @alex8088 in #58

$ npm run build && electron-builder --win

> [email protected] build
> npm run typecheck && electron-vite build


> [email protected] typecheck
> npm run typecheck:node && npm run typecheck:web


> [email protected] typecheck:node
> tsc --noEmit -p tsconfig.node.json --composite false

electron.vite.config.ts:3:17 - error TS2307: Cannot find module '@vitejs/plugin-vue' or its corresponding type declarations.

  There are types at '#DIR_MASKED#/elec-vite-4/node_modules/@vitejs/plugin-vue/dist/index.d.mts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

3 import vue from '@vitejs/plugin-vue'
                  ~~~~~~~~~~~~~~~~~~~~


Found 1 error in electron.vite.config.ts:3

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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