0
AOTビルドを行うにはhttps://angular.io/guide/aot-compilerの指示に従っています。'base64はngcの関数ではありません'
がBootstrapセクションごととして、あなたはここからあなたのmain.tsを切り替える必要があります。これに
import { AppModule } from './app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
:
import '../aot/App/app.module.ngfactory';
platformBrowserDynamic().bootstrapModule(AppModuleNgFactory);
しかし、切り替え後、私はngc
コンパイラを実行すると、このエラーが発生します:
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "ngc -p tsconfig-aot.json"
TypeError: base64 is not a function
at Function.from (native)
at Function.from (native)
at Object.extractInlineSourceMap (E:\myapp\Sources\Web\node_modules\tsickle\build\src\source_map_utils.js:33:19)
at TsickleCompilerHost.stripAndStoreExistingSourceMap (E:\myapp\Sources\Web\node_modules\tsickle\build\src\tsickle_compiler_host.js:128:48)
at TsickleCompilerHost.getSourceFile (E:\myapp\Sources\Web\node_modules\tsickle\build\src\tsickle_compiler_host.js:89:25)
at findSourceFile (E:\myapp\Sources\Web\node_modules\typescript\lib\typescript.js:67909:29)
at processImportedModules (E:\myapp\Sources\Web\node_modules\typescript\lib\typescript.js:68056:25)
at findSourceFile (E:\myapp\Sources\Web\node_modules\typescript\lib\typescript.js:67937:17)
at processSourceFile (E:\myapp\Sources\Web\node_modules\typescript\lib\typescript.js:67840:27)
at processRootFile (E:\myapp\Sources\Web\node_modules\typescript\lib\typescript.js:67728:13)
Compilation failed
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
私はについて知っていますが、私はNodeJS v8.2.1を使用しています。次のコード
ありません運、同じエラー... – marin