angular2-aot-webpack icon indicating copy to clipboard operation
angular2-aot-webpack copied to clipboard

Absolute path not working

Open opiepj opened this issue 8 years ago • 6 comments

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 avatar Dec 15 '16 00:12 opiepj

@opiepj Why would you use it without relative path?

sonicoder86 avatar Dec 26 '16 18:12 sonicoder86

To avoid situations like:

import { HelloWorldComponent } from '../../../../components/hello-world.component';

opiepj avatar Jan 10 '17 04:01 opiepj

@opiepj Can you show Webpack configurations where it works?

sonicoder86 avatar Jan 10 '17 09:01 sonicoder86

@blacksonic Was able to do it with https://github.com/AngularClass/angular2-webpack-starter

opiepj avatar Jan 18 '17 20:01 opiepj

What is the difference between the two configurations that makes it possible?

sonicoder86 avatar Jan 18 '17 21:01 sonicoder86

@opiepj How did you solve this?!

alvaro9210 avatar Mar 01 '17 18:03 alvaro9210