Git Product home page Git Product logo

vue-3-pinia-registration-login-example's Introduction

vue-3-pinia-registration-login-example's People

Contributors

cornflourblue 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  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  avatar  avatar  avatar

vue-3-pinia-registration-login-example's Issues

Importing router in store causes circular dependency which breaks HMR in newest version of Vite

Disclaimer: I'm new to Vite and Vue and could be wrong about this.

After upgrading Vite to the latest version, I started getting the following HMR reload error:

client.ts:113 ReferenceError: Cannot access 'ComponentName' before initialization
client.ts:115 [hmr] Failed to reload component. This could be due to syntax errors or importing non-existent modules. (see errors above)

As soon as I remove the router import statement in auth.store.js, this error no longer happens and I can use HMR like I used to.

Is there a way to access the router without re-importing it? I think that would solve my issue.

Here are my dependencies:

    "dependencies": {
        ...
        "@vitejs/plugin-vue": "^3.2.0",
        "pinia": "^2.0.13",
        "vite": "^3.2.5",
        "vue": "^3.2.33",
        "vue-router": "^4.0.14",
        "vue3-datepicker": "^0.3.4"
    },
    "devDependencies": {
        "eslint": "^8.29.0",
        "eslint-plugin-vue": "^9.8.0",
        "vite-plugin-eslint": "^1.8.1",
        "vite-plugin-mkcert": "^1.10.1"
    }
    ```

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.