PrimeNG + Webpack

UI Components for Angular
Post Reply
microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

06 May 2016, 22:15

I have successfully created the bundle but when i run app i am facing this error in console.

bundle.js:80078 Uncaught ReferenceError: System is not defined

cagatay.civici
Prime
Posts: 18430
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 May 2016, 23:42

Could you share your config please?

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

07 May 2016, 02:05

module.exports = {
entry: './app/boot.ts',
output: {
filename: './dist/bundle.js'
},
resolve: {
modulesDirectories: ['node_modules'],
root: './app',
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'],
},
module: {
loaders: [
{ test: /\.tsx?$/, loader: 'ts-loader' }
],
noParse: [ /zone\.js\/dist\/.+/, /angular2\/bundles\/.+/ ]
}
};

cagatay.civici
Prime
Posts: 18430
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 May 2016, 09:10

And your index.html please. I'm looking for a place that refers to system.js which is not necessary.

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

07 May 2016, 10:27

I have resolved the issue, and now iam able to create bundle with webpack.
But when i host app on IIS and access from browser i am facing this error in browser console.

at resolvePromise (bundle.js:655)
at bundle.js:632
at ZoneDelegate.invoke (bundle.js:440)
at Object.NgZoneImpl.inner.inner.fork.onInvoke (bundle.js:16996)
at ZoneDelegate.invoke (bundle.js:439)
at Zone.run (bundle.js:333)
at bundle.js:688
at ZoneDelegate.invokeTask (bundle.js:473)
at Object.NgZoneImpl.inner.inner.fork.onInvokeTask (bundle.js:16987)
at ZoneDelegate.invokeTask (bundle.js:472)

http://url/app/login/login.template.html 404 (Not Found)scheduleTask @ bundle.js:218ZoneDelegate.scheduleTask @ bundle.js:453Zone.longStackTraceZoneSpec.onScheduleTask @ bundle.js:1550ZoneDelegate.scheduleTask @ bundle.js:450Zone.scheduleMacroTask @ bundle.js:390(anonymous function) @ bundle.js:239send @ VM1167:3XHRImpl.get @ bundle.js:26071DirectiveNormalizer.normalizeTemplate @ bundle.js:38159DirectiveNormalizer.normalizeDirective @ bundle.js:38132(anonymous function) @ bundle.js:35174RuntimeCompiler._loadAndCompileComponent @ bundle.js:35174RuntimeCompiler.resolveComponent @ bundle.js:35155DynamicComponentLoader_.loadNextToLocation @ bundle.js:18637RouterOutlet.activate @ bundle.js:46402(anonymous function) @ bundle.js:43356ZoneDelegate.invoke @ bundle.js:440NgZoneImpl.inner.inner.fork.onInvoke @ bundle.js:16996ZoneDelegate.invoke @ bundle.js:439Zone.run @ bundle.js:333(anonymous function) @ bundle.js:688ZoneDelegate.invokeTask @ bundle.js:473NgZoneImpl.inner.inner.fork.onInvokeTask @ bundle.js:16987ZoneDelegate.invokeTask @ bundle.js:472Zone.runTask @ bundle.js:373drainMicroTaskQueue @ bundle.js:591
bundle.js:25640 EXCEPTION: Error: Uncaught (in promise): Failed to load app/login/login.template.html

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests