Giter VIP home page Giter VIP logo

vite-electron-ts's People

Contributors

cyyjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vite-electron-ts's Issues

error TS6053: File 'folder/vite-electron-ts/src/main/index.ts' not found.

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.

配置 alias 失效

使用了这个模板,然后在 vite.config.ts 里面配置 alias 失效,两种方法都试了(也重启了服务)。我在一个普通的vue3 + vite 的项目里,是能够正常使用的。所以,能帮忙看下吗

  resolve: {
    // alias: {
    //   '@': resolve(__dirname, 'src'),
    //   'root': root, 
    // }
    alias: [{
      find: '@',
      replacement: resolve(__dirname, 'src')
    },

"electron-dev-runner src/main/index.ts --vite" not working

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.