Why I can use AR,js in static html but not work in vue appWhy don't self-closing script elements work?Why does JavaScript only work after opening developer tools in IE once?Vue display unescaped htmlVue v-on:click does not work on componentHow to deploy Vue app?static html and vue with bootstrap-vueLoad static HTML files in VueA-Frame & ar.js: Multiple markers & boxesVideo stuck at first frameDoes Vue not show in file #1 because of an unknown hidden character?

What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?

What flavor of zksnark in tezos

How to decline physical affection from a child whose parents are pressuring them?

What is the history of the check mark / tick mark?

Align text within align

Company is asking me to work from overseas, but wants me to take a paycut

Did thousands of women die every year due to illegal abortions before Roe v. Wade?

Why do guitarists wave their guitars?

How could a possessed body begin to rot and decay while it is still alive?

Is it a problem that pull requests are approved without any comments

Chopin: marche funèbre bar 15 impossible place

Why does a helium balloon rise?

Riley's, assemble!

What do we gain with higher order logics?

Pros and cons of writing a book review?

Why don't B747s start takeoffs with full throttle?

Personalization conditions switching doesn`t work in Experience Editor (9.1.0, Initial Release)

Can you please explain this joke: "I'm going bananas is what I tell my bananas before I leave the house"?

what is triplication on fpga?

Who operates delivery flights for commercial airlines?

Bent spoke design wheels — feasible?

It possible to have subscript and super script that does not shrink the font size?

How to connect an offset point symbol to its original position in QGIS?

What is the right way to float a home lab?



Why I can use AR,js in static html but not work in vue app


Why don't self-closing script elements work?Why does JavaScript only work after opening developer tools in IE once?Vue display unescaped htmlVue v-on:click does not work on componentHow to deploy Vue app?static html and vue with bootstrap-vueLoad static HTML files in VueA-Frame & ar.js: Multiple markers & boxesVideo stuck at first frameDoes Vue not show in file #1 because of an unknown hidden character?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)



And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)



CDN I use, I put them at the end of head.



 <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>


My code in vue component.



<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>


Here is my console
https://imgur.com/GgDtOTn










share|improve this question






















  • Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

    – varit05
    Mar 24 at 13:46











  • @TL.robin did you eventually find out why?

    – Sunyatasattva
    May 25 at 0:08

















1















I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)



And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)



CDN I use, I put them at the end of head.



 <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>


My code in vue component.



<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>


Here is my console
https://imgur.com/GgDtOTn










share|improve this question






















  • Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

    – varit05
    Mar 24 at 13:46











  • @TL.robin did you eventually find out why?

    – Sunyatasattva
    May 25 at 0:08













1












1








1








I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)



And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)



CDN I use, I put them at the end of head.



 <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>


My code in vue component.



<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>


Here is my console
https://imgur.com/GgDtOTn










share|improve this question














I try to import AR.js with CDN in the web app build by vue CLI but not working(Can open camera but can't show AR item)



And I try to put code in static html and it can work, so I think the code is right(copy from AR.js getting start)



CDN I use, I put them at the end of head.



 <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.2/aframe/build/aframe-ar.js"></script>


My code in vue component.



<template>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position="0 0.5 0" material="color: black;"></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</template>


Here is my console
https://imgur.com/GgDtOTn







javascript vue.js ar.js






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 24 at 13:27









TL.robinTL.robin

61




61












  • Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

    – varit05
    Mar 24 at 13:46











  • @TL.robin did you eventually find out why?

    – Sunyatasattva
    May 25 at 0:08

















  • Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

    – varit05
    Mar 24 at 13:46











  • @TL.robin did you eventually find out why?

    – Sunyatasattva
    May 25 at 0:08
















Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

– varit05
Mar 24 at 13:46





Welcome to SO! you can use Vue wrapper of AR.js. Find it out here

– varit05
Mar 24 at 13:46













@TL.robin did you eventually find out why?

– Sunyatasattva
May 25 at 0:08





@TL.robin did you eventually find out why?

– Sunyatasattva
May 25 at 0:08












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324272%2fwhy-i-can-use-ar-js-in-static-html-but-not-work-in-vue-app%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55324272%2fwhy-i-can-use-ar-js-in-static-html-but-not-work-in-vue-app%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해