GithubHelp home page GithubHelp logo

exeteres / electron-nuxt-ts Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 7.0 3.48 MB

[DEPRECATED] Electron + Nuxt + TypeScript

License: MIT License

TypeScript 19.67% CSS 0.76% Vue 79.58%
electron electron-nuxt nuxt template typescript vue

electron-nuxt-ts's People

Contributors

calebjclark avatar dependabot[bot] avatar exeteres 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

Watchers

 avatar  avatar  avatar  avatar

electron-nuxt-ts's Issues

"yarn dev" does not start app

This is either an issue with the project itself or the lack of documentation:
After cloning the repository:

oskar@oskarspc:~/Documents/GitHub/electron-nuxt-ts$ yarn install
yarn install v1.22.11
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "nuxt-class-component > [email protected]" has unmet peer dependency "vue@^2.0.0".
warning "nuxt-class-component > [email protected]" has unmet peer dependency "vue@^2.5.0".
warning "nuxt-class-component > [email protected]" has unmet peer dependency "vuex@^3.0.0".
[4/4] Building fresh packages...
Done in 9.01s.
oskar@oskarspc:~/Documents/GitHub/electron-nuxt-ts$ yarn dev
yarn run v1.22.11
$ yarn build:main && concurrently -k -n main,renderer -c blue,green "cross-env NODE_ENV=development electron ." "nuxt-ts dev"
$ tsc -p tsconfig.main.json
[renderer] ℹ Listening on: http://localhost:3000/
[main] (node:46560) UnhandledPromiseRejectionWarning: Error: Invalid header: Does not start with Cr24
[main]     at crxToZip (/home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/unzip-crx/dist/index.js:32:15)
[main]     at /home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/unzip-crx/dist/index.js:57:32
[main]     at callHanler (/home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/yaku/lib/yaku.js:719:16)
[main]     at tryCatcher (/home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/yaku/lib/yaku.js:436:32)
[main]     at /home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/yaku/lib/yaku.js:575:38
[main]     at flush (/home/oskar/Documents/GitHub/electron-nuxt-ts/node_modules/yaku/lib/yaku.js:478:17)
[main]     at processTicksAndRejections (internal/process/task_queues.js:75:11)
[main] (node:46560) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[main] (node:46560) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[renderer] ℹ Preparing project for development
[renderer] ℹ Initial build may take a while
[renderer] ✔ Builder initialized
[renderer] ✔ Nuxt files generated
[renderer] 
[renderer]  WARN  Browserslist: caniuse-lite is outdated. Please run:
[renderer] npx browserslist@latest --update-db
[renderer] 
[renderer] ℹ Compiling Client
[renderer] ℹ Starting type checking service...

[renderer] ✔ Client: Compiled successfully in 2.86s
[renderer] ℹ Type checking in progress...
[renderer] ℹ Waiting for file changes
[renderer] ℹ Memory usage: 132 MB (RSS: 245 MB)
[renderer] ℹ Listening on: http://localhost:3000/
[renderer] ℹ No type errors found
[renderer] ℹ Version: typescript 3.8.3
[renderer] ℹ Time: 4644 ms

No Window is created.

Building the app, however, does create a window.

OS: Pop!_OS 20.04 (Ubuntu 20.04 fork)

Plugins / Modules / Store not working

I was so happy to find this template as it allows me to use nuxt directly inside of electron, but for now I can't get plugins, custom modules and the vuex store working. As soon as I add one I get this error:
This dependency was not found: * ..\..\src\renderer\store\index.ts in ./dist/.nuxt/store.js

For plugins and modules I get this error:
This dependency was not found: * nuxt_plugin_mymodule_3032cf79 in ./dist/.nuxt/index.js

I can't get it to work. Do you have any idea what the problem could be and how to solve it?

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.