GithubHelp home page GithubHelp logo

Vue3, Router4 problem about router HOT 3 CLOSED

juliusfriedman avatar juliusfriedman commented on July 24, 2024
Vue3, Router4 problem

from router.

Comments (3)

yangliguo7 avatar yangliguo7 commented on July 24, 2024 2

I cannot reproduce this issue on my end. need more information

maybe relate to ur version

from router.

jh-leong avatar jh-leong commented on July 24, 2024 1

I tried removing the external configuration for vue-router in vite.config.ts under rollupOptions, and everything worked fine.

You might want to check the issues in the vue-router repository for more information.

image

from router.

juliusfriedman avatar juliusfriedman commented on July 24, 2024

What can't you reproduce? Locally when I build in production mode I only see the component rendered on the Home page but not the imported data of the router-view.

Are you saying when you build in production mode you are able to view the entire page and browse to home and about pages?

Let me know what other information I could possibly provide..,

Thank you!

P.s Have tried multiple versions of vue and vue-router... and removing the line of vue-router from the externals definition solves the problem but costs another 80kb

This is what I see in prod mode...
image

from router.

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.