angular2-production-workflow icon indicating copy to clipboard operation
angular2-production-workflow copied to clipboard

Not able to build using systemjs-builder

Open ladvishal1985 opened this issue 9 years ago • 0 comments

Hi, I saw your post on the Stackoverflow of bundle NG2 application. I followed your post and tried bundling my application as well. My folder structure is bit different then yours as below: root |-- node_modules |-- client |--libs |--app --> ts, js and sass |--systemjs.config.js

Here for dev setup I copy the node_modules inside the "client" folder and run the client using npm lite. I have made necessary changes inside my systemjs.config.js e.g. "node_modules/" changed to "lib/". This works fine a independent application but when I try to bundle this using systemjs-builder using the gulp systemjs-builder is not referring to correct base path. Also I am unable to build the application and I get an error: app.module not found. Though the path seems to be correct in console.
I am trying to bundle the tours-of-heroes application. I am unable to understand what base path/url refers in systemjs-builder I have created simple systemjs repository at below location. https://github.com/ladvishal1985/ng2-systemjs-test

Let me know if you could help me

ladvishal1985 avatar Sep 19 '16 07:09 ladvishal1985