exeteres / electron-nuxt-ts Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Electron + Nuxt + TypeScript
License: MIT License
[DEPRECATED] Electron + Nuxt + TypeScript
License: MIT License
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)
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?
This is due to nuxt generate
in spa mode. This does not work as i expect or it may be a bug.
https://cmty.app/nuxt/nuxt.js/issues/c8414
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.