angular2-aot-webpack
angular2-aot-webpack copied to clipboard
Absolute path not working
Having an issue with using absolute path's
in main.module:
import { HelloWorldComponent } from 'src/app/components/hello-world.component';
getting: UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Unexpected value 'HelloWorldComponent' declared by the module 'MainModule'
Thoughts?
@opiepj Why would you use it without relative path?
To avoid situations like:
import { HelloWorldComponent } from '../../../../components/hello-world.component';
@opiepj Can you show Webpack configurations where it works?
@blacksonic Was able to do it with https://github.com/AngularClass/angular2-webpack-starter
What is the difference between the two configurations that makes it possible?
@opiepj How did you solve this?!