Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute path not working #46

Open
opiepj opened this issue Dec 15, 2016 · 6 comments
Open

Absolute path not working #46

opiepj opened this issue Dec 15, 2016 · 6 comments

Comments

@opiepj
Copy link

opiepj commented Dec 15, 2016

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?

@sonicoder86
Copy link
Owner

@opiepj Why would you use it without relative path?

@opiepj
Copy link
Author

opiepj commented Jan 10, 2017

To avoid situations like:

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

@sonicoder86
Copy link
Owner

@opiepj Can you show Webpack configurations where it works?

@opiepj
Copy link
Author

opiepj commented Jan 18, 2017

@sonicoder86
Copy link
Owner

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

@alvaro9210
Copy link

@opiepj How did you solve this?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants