cyytemplate / vite-electron-ts Goto Github PK
View Code? Open in Web Editor NEW基于vite和electorn的项目模板
License: MIT License
基于vite和electorn的项目模板
License: MIT License
after running yarn dev, this shows up:
yarn dev
yarn run v1.22.10
$ electron-dev-runner src/main/index.ts --vite
vite v2.4.4 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 319ms.
error TS6053: File 'folder/vite-electron-ts/src/main/index.ts' not found.
The file is in the program because:
Root file specified for compilation
error TS6231: Could not resolve the path 'D:/Projects/_PersonalProjects/New' with the extensions: '.ts', '.tsx', '.d.ts'.
The file is in the program because:
Root file specified for compilation
error TS6231: Could not resolve the path 'folder/vite-electron-ts/dist/main' with the extensions: '.ts', '.tsx', '.d.ts'.
The file is in the program because:
Root file specified for compilation
error: error TS6053: File 'folder/vite-electron-ts/src/main/index.ts' not found.
The file is in the program because:
Root file specified for compilation
error TS6231: Could not resolve the path 'D:/Projects/_PersonalProjects/New' with the extensions: '.ts', '.tsx', '.d.ts'.
The file is in the program because:
Root file specified for compilation
error TS6231: Could not resolve the path 'folder/vite-electron-ts/dist/main' with the extensions: '.ts', '.tsx', '.d.ts'.
The file is in the program because:
Root file specified for compilation
error Command failed with exit code 9.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
使用了这个模板,然后在 vite.config.ts 里面配置 alias 失效,两种方法都试了(也重启了服务)。我在一个普通的vue3 + vite 的项目里,是能够正常使用的。所以,能帮忙看下吗
resolve: {
// alias: {
// '@': resolve(__dirname, 'src'),
// 'root': root,
// }
alias: [{
find: '@',
replacement: resolve(__dirname, 'src')
},
Hi,
This repository not working in linux???
yarn run v1.22.10
$ electron-dev-runner src/main/index.ts --vite
fs.js:1521
throw new ERR_FEATURE_UNAVAILABLE_ON_PLATFORM('watch recursively');
^
TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
at Object.watch (fs.js:1521:11)
at watchFile (/home/jose/Proyectos/xposbox/node_modules/electron-dev-runner/lib/index.js:22:6)
at run (/home/jose/Proyectos/xposbox/node_modules/electron-dev-runner/lib/index.js:83:3)
at Object.<anonymous> (/home/jose/Proyectos/xposbox/node_modules/electron-dev-runner/lib/bin.js:40:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'ERR_FEATURE_UNAVAILABLE_ON_PLATFORM'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.