Comments (10)
Hi @eddyerburgh ,
we work on a "classical" web app where most views are generated in the server side, we added Vue to enhance user experience, we have all components bundled in one webpack big file that is included in every page (and obviously most components are not in the 'current' page).
My question: does it impact perfs or just Vue warn and ignore ?
from avoriaz.
Can you post a minimal failing example that doesn't have any dependencies?
Then I can use it as a test case and write a fix that will let you mount it to a custom element ( I think that should fix the issue).
It's important I have a minimal example to find out what's causing the error and how to fix 👍
from avoriaz.
HI @jacklp, I'm closing this issue but happy to reopen if you can provide more detail.
What I think is happening is that you were trying to test a component that was had the $el
option (aka the root component) set to '#app'
. As this doesn't exist on the DOM you were testing on, it threw an error.
This could be solved by adding an element with an id of app to the body.
I don't think any feature should be added to avoriaz to support this, as the root element should really be logic less. Although I'm happy to discuss this if anyone disagrees
from avoriaz.
@mboullouz I'm having the same issue :/
from avoriaz.
@eddyerburgh same here
from avoriaz.
Hi guys, came across this site via a google search. Even though I am not using this app, I am getting the same issue and I know why as well, but I am not sure how to resolve it yet.
I built my own app, using Laravel. One component that I want to use is DataTables. To get this working, I had to remove 'deferred' from [code]<script src="{{ asset('js/app.js') }}"></script>[/code] and since then, I am getting this error. Obviously, if I put deferred back, I don't get this error anymore, but then my datatables don't work anymore.
from avoriaz.
Same bug.
from avoriaz.
Same error.
from avoriaz.
same warn
from avoriaz.
Put the <script> in the bottom of body teg. For me, it helped
from avoriaz.
Related Issues (20)
- External JS files "not defined" HOT 1
- Can't get input value based on v-model HOT 2
- Migrating from Avoriaz to vue-test-utils HOT 1
- Testing props being passed to child components on mount HOT 2
- Test fails when trying to trigger click inside <router-view></router-view> HOT 1
- hasAttribute docs seem to be outdated HOT 1
- Returning undefined on wrapper.html() for a component with jade and vuex
- Tests disregard disabled attribute HOT 3
- How can I use shallow() for a component wrapped in a function within a class HOT 1
- Trigger not working with click
- Make children select work as it should HOT 1
- data() returns empty object HOT 2
- Trigger mouseover/mouseleave etc
- Is this project deprecated in favor of vue-test-utils now? HOT 2
- Scoped slots (slot-scope) issues HOT 3
- Suppress logged warning on calls to propsData() HOT 1
- vue-test-utils 1.0.0-beta.11 setData Error HOT 1
- vue-test-utils 1.0.0-beta.16 setData Error
- Can't find nested component with neither '.find' nor '.first' wrapper methods HOT 3
- How do you ensure a global is being set to child components from mount? HOT 1
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 avoriaz.