Comments (8)
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.
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.
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.
@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.
from ngvue.
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
from ngvue.
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.
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.
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)
- Support for composition api? HOT 2
- .sync modifier HOT 2
- Vue3 support HOT 6
- Support multiple children in <slot>
- How to listen to broadcasted event from angular components into Vue component? HOT 4
- Vue component not rendering on IE HOT 1
- Vue-apollo provider doesn't work
- How to use Vue.js provide/inject with ngVue?
- Quirk Mode doesn't work.
- Specify `module` to `build/index.esm.js` in `package.json` to support ESM import HOT 2
- Incorrect main/module/exports in `package.json` in v2.1.1 HOT 2
- Mount Vue in ShadowDOM HOT 1
- Plugins do not work with Webpack 5 HOT 4
- Time to remove that deprecation message? HOT 4
- Update to the Vuex store does not trigger update in the components in debug mode. HOT 2
- how to re render a vue component with ngVue HOT 3
- Error: ngVue components must have a parent tag or they will not render HOT 1
- Maintainers needed
- v-directive not updating value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngvue.