Coder Social home page Coder Social logo

Comments (10)

mboullouz avatar mboullouz commented on May 28, 2024 2

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.

eddyerburgh avatar eddyerburgh commented on May 28, 2024

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.

eddyerburgh avatar eddyerburgh commented on May 28, 2024

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.

MetalNose avatar MetalNose commented on May 28, 2024

@mboullouz I'm having the same issue :/

from avoriaz.

paulvonber avatar paulvonber commented on May 28, 2024

@eddyerburgh same here

from avoriaz.

wbarnard81 avatar wbarnard81 commented on May 28, 2024

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.

crocodilered avatar crocodilered commented on May 28, 2024

Same bug.

from avoriaz.

antangible avatar antangible commented on May 28, 2024

Same error.

from avoriaz.

milad-4274 avatar milad-4274 commented on May 28, 2024

same warn

from avoriaz.

Alwongs avatar Alwongs commented on May 28, 2024

Put the <script> in the bottom of body teg. For me, it helped

from avoriaz.

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.