Coder Social home page Coder Social logo

Comments (8)

jaredmcateer avatar jaredmcateer commented on July 20, 2024 1

I'm on vacation this week and only had a few minutes to play around. We can try and set something up next week if you can't figure it out by then. Some ideas that you can check

  • Update ngVue, I notice you're using an older version of ngVue since it's warning about event names so I'm not sure which version your running but that warning was removed in the most recent patch. Prior to that patch there were a series of releases to fix ESM support, maybe webpack 5 is having issues with that.
  • Check your angular module config that the ngProvider code is being run on the correct module. If you happen to have different modules and the store isn't being provided at the top most module it might not be available in the components.
  • Based on the "You're running in development mode" console messages it looks like multiple versions of Vue are being included in your app (vue.runtime.esm.js and vue.runtime.common.dev.js bundles). That could cause a problem

from ngvue.

jaredmcateer avatar jaredmcateer commented on July 20, 2024

There shouldn't be but I haven't personally tested it. Would it be possible to create a minimal reproduction? I can take a look at it this weekend.

from ngvue.

sirSayed98 avatar sirSayed98 commented on July 20, 2024

you can find here when I use setRootVueInstanceProps no $store value existed (you can check log in team-performance component)
So I need to put store explicitly using
Vue.component('performancePageComponent', { store, render(h) { return h(PerformancePageComponent); }, })
you can check this workaround here

from ngvue.

jaredmcateer avatar jaredmcateer commented on July 20, 2024

@sirSayed98 I checked out your repository and changed the branch to POC/setRootVueInstanceProps, I started the server and When I click on "Team performance chart page" I see the PerformancePage component successfully call this.$store.dispatch('getCharts') on creation and I see getCharts attempt to make an external request. So it looks like ngVue is working as expected in that branch.

image

from ngvue.

sirSayed98 avatar sirSayed98 commented on July 20, 2024

I appreciate your prompt reply. Initially, I believed that I had raised the issue on this repository. However, as you've observed, it seems to have disappeared. The challenge persists within our project. Regrettably, it's located in a private repository. If we could arrange a meeting to delve into the matter further and examine it within our product, I would be extremely thankful.
@jaredmcateer
Note:
in the screenshot there is no $store attribute in vue component
image
image

from ngvue.

sirSayed98 avatar sirSayed98 commented on July 20, 2024

Thank you 🙏 have a nice vacation 🔥
I will double check all these notes and Ping you next week if the problem not solved

from ngvue.

eeedvisss avatar eeedvisss commented on July 20, 2024

Thank you 🙏 have a nice vacation 🔥 I will double check all these notes and Ping you next week if the problem not solved

Hi @sirSayed98. Have you solved the issue in your project? We stumbled on the same issue. Maybe you could share what was the problem in your case?

from ngvue.

sirSayed98 avatar sirSayed98 commented on July 20, 2024

Thank you 🙏 have a nice vacation 🔥 I will double check all these notes and Ping you next week if the problem not solved

Hi @sirSayed98. Have you solved the issue in your project? We stumbled on the same issue. Maybe you could share what was the problem in your case?

still not solved

from ngvue.

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.