i trying follow steps outlined here: https://angular.io/docs/ts/latest/guide/webpack.html can't seem basic hello world working. project seems build successfully, when point browser http://localhost:8080/ see error (404) @ last request:
16.09.02 00:35:06 200 /index.html
16.09.02 00:35:06 200 /app.63d880f68c1209ba2e74.css
16.09.02 00:35:06 200 /app.63d880f68c1209ba2e74.js
16.09.02 00:35:08 200 /polyfills.63d880f68c1209ba2e74.js
16.09.02 00:35:30 200 /app.63d880f68c1209ba2e74.css.map
16.09.02 00:35:31 200 /polyfills.63d880f68c1209ba2e74.js.map
16.09.02 00:35:31 200 /vendor.63d880f68c1209ba2e74.js
16.09.02 00:35:33 404 /
<main>
<h1>hello angular 2 app webpack</h1>
<img src="/assets/angular.9db278d630f5fabd8e7ba16c2e329a3a.png">
</main>
in console following:
rozone.js:101 http://localhost:8080/%3cmain%3e%0a%20%20%3ch1%3ehello%20from%20angular%202…assets/angular.9db278d630f5fabd8e7ba16c2e329a3a.png%22%3e%0a%3c/main%3e%0a 404 (not found)scheduletask @ zone.js:101zonedelegate.scheduletask @ zone.js:345zone.schedulemacrotask @ zone.js:282(anonymous function) @ zone.js:122send @ vm62:3resourceloaderimpl.get @ platform-browser-dynamic.umd.js:131directivenormalizer._fetch @ compiler.umd.js:13450directivenormalizer.normalizetemplateasync @ compiler.umd.js:13493directivenormalizer.normalizedirective @ compiler.umd.js:13468runtimecompiler._createcompiledtemplate @ compiler.umd.js:16843(anonymous function) @ compiler.umd.js:16781(anonymous function) @ compiler.umd.js:16779runtimecompiler._compilecomponents @ compiler.umd.js:16778runtimecompiler.compilemoduleandcomponents @ compiler.umd.js:16715runtimecompiler.compilemoduleasync @ compiler.umd.js:16706platformref.bootstrapmodulewithzone @ core.umd.js:9488platformref.bootstrapmodule @ core.umd.js:9470webpackjsonp.0 @ main.ts:9__webpack_require__ @ bootstrap 63d880f…:50webpackjsonpcallback @ bootstrap 63d880f…:21(anonymous function) @ app.63d880f….js:1 zone.js:484 unhandled promise rejection: failed load %3cmain%3e%0a%20%20%3ch1%3ehello%20from%20angular%202%20app%20with%20webpack%3c/h1%3e%0a%20%20%3cimg%20src=%22/assets/angular.9db278d630f5fabd8e7ba16c2e329a3a.png%22%3e%0a%3c/main%3e%0a ; zone: ; task: promise.then ; value: failed load %3cmain%3e%0a%20%20%3ch1%3ehello%20from%20angular%202%20app%20with%20webpack%3c/h1%3e%0a%20%20%3cimg%20src=%22/assets/angular.9db278d630f5fabd8e7ba16c2e329a3a.png%22%3e%0a%3c/main%3e%0a undefinedconsoleerror @ zone.js:484_loop_1 @ zone.js:511drainmicrotaskqueue @ zone.js:515zonetask.invoke @ zone.js:437 zone.js:486 error: uncaught (in promise): failed load %3cmain%3e%0a%20%20%3ch1%3ehello%20from%20angular%202%20app%20with%20webpack%3c/h1%3e%0a%20%20%3cimg%20src=%22/assets/angular.9db278d630f5fabd8e7ba16c2e329a3a.png%22%3e%0a%3c/main%3e%0a(…)consoleerror @ zone.js:486_loop_1 @ zone.js:511drainmicrotaskqueue @ zone.js:515zonetask.invoke @ zone.js:437 :8080/favicon.ico:1 http://localhost:8080/favicon.ico 404 (not found)
any appreciated... if able work following guide, may helpful may mean somehow failed enter in supposed to... clues great have no idea what's going on here... :(
Comments
Post a Comment