Ionic-cli: فشل تحميل الموارد (لم يتم العثور على view.html)

تم إنشاؤها على ٢٨ يوليو ٢٠١٥  ·  3تعليقات  ·  مصدر: ionic-team/ionic-cli

مرحبًا يا رفاق ، أتمنى أن تكونوا جميعًا بخير ،
لقد قمت بإنشاء تطبيق أسود أيوني بسيط وقمت بتعديل app.js الخاص به لإنشاء حالات
يعمل التطبيق بشكل رائع مع أمر الخدمة الأيونية ولكن عندما أقوم بتثبيته على هاتف android مع android android ، فإنه يعرض شاشة بيضاء فارغة.
يظهر مفتش الكروم بعد الخطأ
فشل تحميل الموارد (الملف view.html غير موجود)
فشل تحميل الموارد (لم يتم العثور على الملف newView.html)

ملف view.html مثل لوحة القيادة

هذا هو رمز ملف app.js الخاص بي
الزاوي ("بادئ" ، ["أيوني"])

.run (function ($ ionicPlatform) {
$ ionicPlatform.ready (الوظيفة () {
// إخفاء شريط الملحقات افتراضيًا (قم بإزالته لإظهار شريط الملحقات أعلى لوحة المفاتيح
// لمدخلات النموذج)
إذا (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar (صواب) ؛
}
إذا (window.StatusBar) {
StatusBar.styleDefault () ،
}
}) ؛

})
.controller ("AppController"، function ($ example، $ range، $ http) {
console.log ("مرحبا") ؛
})
.config (الوظيفة ($ stateProvider ، $ urlRouterProvider ، $ ionicConfigProvider) {
$ ionicConfigProvider.navBar.alignTitle ("المركز")

StateProvider دولار
.state ("عرض"، {
url: "/ view"،
الملخص: خطأ ،
// تحكم: "AppController" ،
templateUrl: "/ قوالب / view.html"
})
.state ("viewRecord"، {
url: "/ viewRecord"،

    // controller: 'AppController',
    templateUrl:"/templates/viewRecord.html"
  })
  .state('edit', {
    url: "/edit",

    // controller: 'AppController',
    templateUrl:"/templates/editRecord.html"
  })
  .state('delete', {
    url: "/delete",

    // controller: 'AppController',
    templateUrl:"/templates/deleteRecord.html"
  })
  .state('new', {
    url: "/new",

    // controller: 'AppController',
    templateUrl:"/templates/newRecord.html"
  })
 $urlRouterProvider.otherwise('/view');

}) ؛

هنا view.html

  <ion-header-bar class="bar bar-balanced">
    <h1 class="title">Database Tester</h1>
  </ion-header-bar>
   <ion-content>
     <div class="card">
      <div class="item item-balanced">
        Welcome to Database Tester.
      </div>
      <div class="item item-text-wrap">
        Please Select an Option to test the database.
      </div>
      <div class="option">
         <button class="button opt button-balanced" ui-sref="new" href="/new">New Record</button>
         <button class="button opt button-balanced" ui-sref="edit" href="/edit">Edit Record</button>
         <button class="button opt button-balanced" ui-sref="viewRecord" href="/viewRecord">View Record</button>
         <button class="button opt button-balanced" ui-sref="delete" href="/delete">Delete Record</button>
      </div>
       <div class="item"></div>

      <div class="item item-balanced">

      </div>
    </div>
  </ion-content>
  <div class="bar bar-footer bar-balanced">
    <div class="title" ui-sref="view" href="/view"><i class="icon ion-home"></i></div>
  </div>

ها هو index.html الخاص بي






<pre i = "57"> <code i = "58"> $ # $ 2 $ # $ </code> </pre> <pi = "59"> <br i="60"/> </p> <pre i = "61"> <code i = "62"> $ # $ 3 $ # $ </code> </pre> <pi = "63"> <br i="64"/> </p> </div> <div> <div class="float-right"> <a class="text-muted" href="https://www.github.com/ionic-team/ionic-cli/issues/537" rel="nofollow noreferrer" target="_blank" onclick="dataLayer.push({'event': 'GAEvent', 'eventCategory': 'click', 'eventAction': 'source_bottom', 'eventLabel': 'Source Bottom', 'eventValue': undefined});">مصدر</a> </div> </div> </div> <div class="card-footer"> <div class="row"> <div class="col"> <img src="https://avatars.githubusercontent.com/u/12621700?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt=" picture"> <strong>secret4info</strong> </div> <div class="col text-right"> </div> </div> </div> </div> </div> <div class="col-12"> <div id="ph-above-best-comment"> </div> </div> <div class="col-12 mb-4 best-comment"> <div> <h2 class="mb-3"><i class="fas fa-check mr-2"></i>التعليق الأكثر فائدة</h2> </div> <div class="card card-custom border-lg-success mb-4"> <div class="card-body pt-3 pb-3 markdown"> <p>ربما التغيير</p><pre><code class="prettyprint">templateUrl:"/templates/newRecord.html" </code></pre><p>إلى ("/ قوالب ..." -> "./templates ....")</p><pre><code class="prettyprint">templateUrl:"./templates/newRecord.html" </code></pre> </div> <div class="card-footer"> <div class="row"> <div class="col"> <img src="https://avatars.githubusercontent.com/u/5483026?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt=" picture"> <strong>tlkiong</strong> <span class="text-muted ml-1">في ٥ أغسطس ٢٠١٥</span> </div> <div class="col text-right"> 👍<span class="ml-2 mr-3">3</span> </div> </div> </div> </div> </div> <div class="col-12"> <div class="mb-4"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3835332123789605" data-ad-slot="9295564578" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="col-12 d-flex align-items-center mb-4"> <h2>ال 3 كومينتر</h2> </div> <div class="col-12"> <div class="card card-custom mb-4"> <div class="card-body pt-3 pb-3 markdown"> <p>ربما التغيير</p><pre><code class="prettyprint">templateUrl:"/templates/newRecord.html" </code></pre><p>إلى ("/ قوالب ..." -> "./templates ....")</p><pre><code class="prettyprint">templateUrl:"./templates/newRecord.html" </code></pre> </div> <div class="card-footer"> <div class="row"> <div class="col"> <img src="https://avatars.githubusercontent.com/u/5483026?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="tlkiong picture"> <strong>tlkiong</strong> <span class="text-muted ml-1">في ٥ أغسطس ٢٠١٥</span> </div> <div class="col text-right"> 👍<span class="ml-2 mr-3">3</span> </div> </div> </div> </div> <div class="card card-custom mb-4"> <div class="card-body pt-3 pb-3 markdown"> <p>تحياتي @ secret4info!</p><p>لقد أغلقت هذه المشكلة لأن أجهزة الاستشعار الخاصة بي أشارت إلى أنها كانت قديمة وغير نشطة ، وربما تم إصلاحها بالفعل في الإصدارات الأخيرة من Ionic. ومع ذلك ، إذا كنت لا تزال تواجه هذه المشكلة ، فلا تتردد في إعادة فتح هذه المشكلة من خلال إنشاء مشكلة جديدة ، وتضمين أي أمثلة وغيرها من المعلومات الضرورية ، حتى نتمكن من النظر فيها بشكل أكبر.</p><p>أشكركم على إتاحة الفرصة لي لمساعدتكم.</p> </div> <div class="card-footer"> <div class="row"> <div class="col"> <img src="https://avatars.githubusercontent.com/u/452425?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="adamdbradley picture"> <strong>adamdbradley</strong> <span class="text-muted ml-1">في ٣٠ ديسمبر ٢٠١٥</span> </div> <div class="col text-right"> </div> </div> </div> </div> <div class="card card-custom mb-4"> <div class="card-body pt-3 pb-3 markdown"> <p>أدركت أن هذا ذهب قديمًا ومغلقًا ، لكن كان لدي هذه المشكلة بالضبط ، وكانت إجابة tlkiong صحيحة تمامًا. يبدو أن الجهاز الأصلي احتاج إلى الفترة في templateUrl بينما لم يكن يعمل في متصفح الويب. كلاهما يعمل لدي الآن.</p><p>templateUrl: "./ قوالب / newRecord.html"</p> </div> <div class="card-footer"> <div class="row"> <div class="col"> <img src="https://avatars.githubusercontent.com/u/7048381?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="alphagopher picture"> <strong>alphagopher</strong> <span class="text-muted ml-1">في ١٠ نوفمبر ٢٠١٦</span> </div> <div class="col text-right"> </div> </div> </div> </div> </div> <div class="col-12"> <div class="card card-custom mb-4"> <div class="card-body pt-3 pb-3 markdown text-center helpful"> <div class="title">هل كانت هذه الصفحة مفيدة؟</div> <div class="mt-1" onMouseLeave="rating(97631660, 0);"> <i class="fas fa-star inactive" id="star-1" onMouseOver="rating(97631660, 1);" onclick="rate(97631660, 1);"></i> <i class="fas fa-star inactive" id="star-2" onMouseOver="rating(97631660, 2);" onclick="rate(97631660, 2);"></i> <i class="fas fa-star inactive" id="star-3" onMouseOver="rating(97631660, 3);" onclick="rate(97631660, 3);"></i> <i class="fas fa-star inactive" id="star-4" onMouseOver="rating(97631660, 4);" onclick="rate(97631660, 4);"></i> <i class="fas fa-star inactive" id="star-5" onMouseOver="rating(97631660, 5);" onclick="rate(97631660, 5);"></i> </div> <div class="description text-small"><span id="rating-val">0</span> / 5 - <span id="rating-count">0</span> التقييمات</div> </div> </div> <div class="mb-4"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3835332123789605" data-ad-slot="3452512275" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> <div class="col-12 col-lg-4"> <div id="ph-above-related"></div> <div class="card card-custom issue-box"> <div class="card-body pt-3 pb-5"> <h2 class="mb-4">القضايا ذات الصلة</h2> <div> <strong> <a href="/ar/ionic-cli/214397818/create-icons-for-ios-and-browser-favicon-does-not-work">إنشاء أيقونات لـ IOS و BROWSER (favicon) لا يعمل</a> </strong> </div> <div class="text-muted text-small mt-2"> <img src="https://avatars.githubusercontent.com/u/8823093?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="jgw96 picture"> <strong class="pr-1" dir="ltr">jgw96</strong>  ·  <span class="px-1" dir="ltr">3</span><span>تعليقات</span> </div> <hr /> <div> <strong> <a href="/ar/ionic-cli/161023516/ionic-start-newapp-ts-v2-typeerror-options-template-indexof">بداية أيونية newApp -ts --v2 =&gt; خطأ في النوع: options.template.indexOf ليس دالة</a> </strong> </div> <div class="text-muted text-small mt-2"> <img src="https://avatars.githubusercontent.com/u/1583231?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="petermetz picture"> <strong class="pr-1" dir="ltr">petermetz</strong>  ·  <span class="px-1" dir="ltr">3</span><span>تعليقات</span> </div> <hr /> <div> <strong> <a href="/ar/ionic-cli/288698290/npm-install-fails-while-creating-new-application-with-cli">فشل تثبيت npm أثناء إنشاء تطبيق جديد باستخدام CLI بسبب node-sass v4.5.3</a> </strong> </div> <div class="text-muted text-small mt-2"> <img src="https://avatars.githubusercontent.com/u/5697227?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="ayush987goyal picture"> <strong class="pr-1" dir="ltr">ayush987goyal</strong>  ·  <span class="px-1" dir="ltr">3</span><span>تعليقات</span> </div> <hr /> <div> <strong> <a href="/ar/ionic-cli/317806078/bug-workaround-command-ionic-cordova-build-android-prod">[الخطأ والحل] الأمر "ionic cordova build android --prod --release" لا يعمل</a> </strong> </div> <div class="text-muted text-small mt-2"> <img src="https://avatars.githubusercontent.com/in/8640?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="ionitron-bot[bot] picture"> <strong class="pr-1" dir="ltr">ionitron-bot[bot]</strong>  ·  <span class="px-1" dir="ltr">3</span><span>تعليقات</span> </div> <hr /> <div> <strong> <a href="/ar/ionic-cli/264191880/ionic-cordova-resources-splash-not-working">موارد كوردوفا الأيونية - سبلاش لا تعمل ،</a> </strong> </div> <div class="text-muted text-small mt-2"> <img src="https://avatars.githubusercontent.com/u/12730428?v=4&s=40" style="width:20px; height:20px;" class="mr-2 rounded float-left" alt="rashnk picture"> <strong class="pr-1" dir="ltr">rashnk</strong>  ·  <span class="px-1" dir="ltr">3</span><span>تعليقات</span> </div> </div> </div> <div class="sticky-top pt-4"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3835332123789605" data-ad-slot="3919948963" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div id="ph-below-related-2" class="mt-4"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3835332123789605" data-ad-slot="3919948963" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <div class="col-12 col-lg-4"> </div> </div> <div class="skyscraper-container"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3835332123789605" data-ad-slot="7879185320" data-ad-format="vertical" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="mt-5 spacer"></div> <footer class="mt-5 pb-2 py-4 text-center mt-auto"> <div class="container"> <a class="navbar-brand logo mr-5" href="/"> <img src="/assets/img/logo.svg" width="40" height="40" alt="bleepcoder logo"> bleep<strong>coder</strong> </a> <div class="mt-4"> يستخدم موقع bleepcoder.com معلومات GitHub المرخصة بشكل عام لتزويد المطورين حول العالم بحلول لمشاكلهم. نحن لسنا تابعين لشركة GitHub، Inc. أو مع أي مطورين يستخدمون GitHub لمشاريعهم. نحن لا نستضيف أيًا من مقاطع الفيديو أو الصور على خوادمنا. جميع الحقوق تنتمي إلى أصحابها. </div> <div> مصدر هذه الصفحة: <a href="https://www.github.com/ionic-team/ionic-cli/issues/537" rel="nofollow noreferrer" target="_blank">مصدر</a> </div> </div> <hr class="mb-5 mt-5"> <div class="container"> <div class="row"> <div class="col-sm-4 col-lg mb-sm-0 mb-5"> <strong>لغات البرمجة الشعبية</strong> <ul class="list-unstyled mb-0 mt-2"> <li class="mb-2"> <a href="/ar/python" dir="ltr">Python</a> </li> <li class="mb-2"> <a href="/ar/javascript" dir="ltr">JavaScript</a> </li> <li class="mb-2"> <a href="/ar/typescript" dir="ltr">TypeScript</a> </li> <li class="mb-2"> <a href="/ar/cpp" dir="ltr">C++</a> </li> <li class="mb-2"> <a href="/ar/csharp" dir="ltr">C#</a> </li> </ul> </div> <div class="col-sm-4 col-lg mb-sm-0 mb-5"> <strong>مشاريع GitHub الشعبية</strong> <ul class="list-unstyled mb-0 mt-2"> <li class="mb-2"> <a href="/ar/microsoft/vscode" dir="ltr">vscode</a> </li> <li class="mb-2"> <a href="/ar/numpy/numpy" dir="ltr">numpy</a> </li> <li class="mb-2"> <a href="/ar/ant-design/ant-design" dir="ltr">ant-design</a> </li> <li class="mb-2"> <a href="/ar/mui-org/material-ui" dir="ltr">material-ui</a> </li> <li class="mb-2"> <a href="https://pythontwist.com" dir="ltr">pythontwist</a> </li> </ul> </div> <div class="col-sm-4 col-lg mb-0"> <strong>المزيد من مشاريع GitHub</strong> <ul class="list-unstyled mb-0 mt-2"> <li class="mb-2"> <a href="/ar/rust-lang/rust" dir="ltr">rust</a> </li> <li class="mb-2"> <a href="/ar/moment/moment" dir="ltr">moment</a> </li> <li class="mb-2"> <a href="/ar/yarnpkg/yarn" dir="ltr">yarn</a> </li> <li class="mb-2"> <a href="/ar/mozilla/pdf-js" dir="ltr">pdf.js</a> </li> <li class="mb-2"> <a href="/JuliaLang/julia" dir="ltr">julia</a> </li> </ul> </div> </div> </div> <hr class="mb-5 mt-5"> <div class="container text-muted"> © 2024 bleepcoder.com - <a href="/bleeps" rel="nofollow">Contact</a><br /> Made with <i class="fas fa-heart"></i> in the Dominican Republic.<br /> By using our site, you acknowledge that you have read and understand our <a href="/cookies" rel="nofollow">Cookie Policy</a> and <a href="/privacy" rel="nofollow">Privacy Policy</a>. </div> </footer> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script> <script async src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://cdn.rtlcss.com/bootstrap/v4.2.1/js/bootstrap.min.js" integrity="sha384-a9xOd0rz8w0J8zqj1qJic7GPFfyMfoiuDjC9rqXlVOcGO/dmRqzMn34gZYDTel8k" crossorigin="anonymous"></script> <!--<script defer type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5fb2db66acbd74b2"></script>--> <script type="text/javascript" src="/assets/js/main.js"></script> <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script></body> </html>