2017-11-20 2 views
0

Probleme, wenn ich mein Projekt mit ng build bauen -aot i viele Fehler habe, wie kann ich dieses Problem lösen gibtWenn ich mein Projekt mit ng build bauen -aot i viele Fehler habe, wie kann ich dieses Problem lösen

<div class="col text-right"> 
 
              <div ngbDropdown [ERROR ->][up]="true" class="d-inline-block"> 
 
               <button class="btn btn-outline-info" id="dropdownBasi"): ng:///F:/1122017/New folder/material-angularcli/src/app/pages/component/dropdown-collapse/[email protected]:26 
 
    at syntaxError (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34) 
 
    at TemplateParser.parse (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:12826:19) 
 
    at AotCompiler._compileComponent (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:24054:39) 
 
    at F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:23935:55 
 
    at Array.forEach (<anonymous>) 
 
    at AotCompiler._compileImplFile (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:23918:20) 
 
    at F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:23829:87 
 
    at Array.map (<anonymous>) 
 
    at AotCompiler.emitAllImpls (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler\bundles\compiler.umd.js:23829:52) 
 
    at CodeGenerator.emit (F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler-cli\src\codegen.js:42:46) 
 
    at F:\1122017\New folder\material-angularcli\node_modules\@angular\compiler-cli\src\codegen.js:33:61 
 
    at <anonymous> 
 
    at process._tickCallback (internal/process/next_tick.js:188:7)
mit

Antwort

0

Versuchen:

ng build -prod --aot=false 
+0

Dank. aber ich möchte alle Fehler entfernen und Proper aot build erstellen. –

1

Lesen Sie, was Ihre Fehlermeldung sagt.

Ich bin mir ziemlich sicher, dass der [up] Eingang wird nicht mehr unterstützt, so stattdessen versuchen, so etwas wie:

<div ngbDropdown placement="top-right" class="d-inline-block"> 
... 
</div> 
Verwandte Themen