Giter VIP home page Giter VIP logo

Comments (8)

ChrisKader avatar ChrisKader commented on May 18, 2024

If it helps, my original project did not have an issue until I deleted the node-modules folder and did an npm install. I assume a dependency update broke it but I went through some of the recent updates you made to the library and reverted to previous versions without any luck.

from electron-nuxt.

ChrisKader avatar ChrisKader commented on May 18, 2024
  • Cloned this branch
  • vue init "./electron-nuxt" test1
  • Options seleceted
? Application Name test1
? Application Id com.example.yourapp
? Application Version 0.0.1
? Project description An electron-nuxt project
? Author
? Select which ui-components framework install Vuetify
? Select which css pre-processor install none
? Select which icon set install none
? Use typescript? No
? Use linting with ESLint? No
? Set up unit testing with vue-test-utils + AVA? No
? Set up end-to-end testing with Spectron + AVA? No
  • cd test1
  • npm install
  • npm run dev

I am no longer experiencing a reload loop.

from electron-nuxt.

ChrisKader avatar ChrisKader commented on May 18, 2024

Below options introduced reload loop:

? Application Name test1
? Application Id com.example.yourapp
? Application Version 0.0.1
? Project description An electron-nuxt project
? Author
? Select which ui-components framework install Vuetify
? Select which css pre-processor install Sass
? Select which icon set install Material Design Icon
? Use typescript? Yes
? Use linting with ESLint? Yes
? Set up unit testing with vue-test-utils + AVA? Yes
? Set up end-to-end testing with Spectron + AVA? Yes

from electron-nuxt.

ChrisKader avatar ChrisKader commented on May 18, 2024

After a bit of trial and error the reload looping seems to be attributed to the @nuxt/typescript-build module.

from electron-nuxt.

ChrisKader avatar ChrisKader commented on May 18, 2024

nuxt/typescript#145

from electron-nuxt.

michalzaq12 avatar michalzaq12 commented on May 18, 2024

@ChrisKader, thanks for reporting and your research.
So far the only solution is to use yarn

from electron-nuxt.

ChrisKader avatar ChrisKader commented on May 18, 2024

Will yarn work with your package without issue? I have been working on my first Electron app and I have gotten used to using this Electron-Nuxt (It is an amazing package!). Currently I do not have any problem with the reload loop (using the dependencies below) but I also dont mind swapping.

"devDependencies": {
    "@mdi/font": "4.4.95",
    "@nuxt/typescript-build": "^0.1.11",
    "@nuxtjs/vuetify": "1.6.1",
    "@xpda-dev/core": "^0.1.5",
    "@xpda-dev/electron-builder": "^0.1.1",
    "@xpda-dev/electron-launcher": "^0.1.1",
    "@xpda-dev/webpack-step": "^0.1.2",
    "enhanced-resolve": "webpack/enhanced-resolve#master",
    "browser-env": "3.2.6",
    "cross-env": "6.0.3",
    "electron": "5.0.10",
    "electron-builder": "21.2.0",
    "electron-debug": "3.0.1",
    "node-sass": "4.12.0",
    "nuxt": "^2.8.1",
    "roboto-fontface": "0.10.0",
    "sass-loader": "8.0.0",
    "typescript": "3.5.3",
    "vue-devtools": "5.1.3",
    "vuetify": "2.0.11",
    "webpack": "4.41.0",
    "webpack-node-externals": "1.7.2"
  },

from electron-nuxt.

michalzaq12 avatar michalzaq12 commented on May 18, 2024

Fixed in #253

from electron-nuxt.

Related Issues (20)

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.