angular


Webpack resolve.modulesDirectories doesn't seem to work


Webpack is pretty clear that it's resolution is going to work like Node's does. Perhaps I misunderstand it, but it appears to be broken. This is an Angular 2 project.
Here is what I have configured:
module.exports = {
//....
resolve: {
extensions: ['', '.ts', '.js'],
root: helpers.root(), //Root points to the root of my project
modulesDirectories: ['node_modules', 'app/module'],
},
}
Angular modules or components should then be able to import via:
import {SomeComponent} from 'common-mdl';
with the following structure:
-config/
-webpack.js
-app/
-module/
-common-mdl
-index.ts //Contains export for common-mdl
-common-mdl.ts //Contains common-mdl module definition
-other-mdl
-index.ts //Contains export for other-mdl
-other-mdl.ts //Contains other-mdl module definition
If I try to use the above import statement with the above structure, I get errors with webpack stating that it can't find module 'common-mdl'.
I have also tried setting up aliases, to no avail.
1) Do I misinterpret the module resolution strategy?
2) If I do, what should I do differently?
3) If not, is this a bug?
4) How does Angular achieve the same strategy? Why does import {Something} from '#angular/core'; work with Angular but not my stuff?

Related Links

Angular2 doesn't work Custom Reuse Strategy with Lazy module loading
view not updated while changing class variable value angular2
Using Angular 2, how can I allow robots.txt to be viewed without angular routing being triggered?
Angular2 Google sign
Angular2 : Async Pipe and conditional styling. How to refactor my code?
Angular 2 attribute directive to clear textbox?
How to get asynchronous data from one Angular component to another
Looping using ngFor and skip nth element
How to populate a dropdown list default value from API in Angular2 Model based form
Async pipe where no element
How to trigger PrimeNG Accordion Click programmatically in Angular 2.0?
how to use file system (fs) in angular 2
Angular2 router with Http data service through a Resolve with Observable catching 404
Angular: Get value as Input from Component in router outlet
display errors of the type net::ERR_CONNECTION_REFUSED
Pre Populate input filed in `FormGroup` - Angular2

Categories

HOME
iframe
sql-server-2005
set
luigi
logistic-regression
ssd
uiviewcontroller
graph-algorithm
jboss-eap-6
instagram-api
geogebra
outlook-addin
apache-apex
playframework-2.5
jestjs
ninja
spring-data-elasticsearch
biopython
4d-database
konvajs
robots.txt
stackdriver
multiline
raycasting
apprtcdemo
jquery-animate
gnome
phylogeny
indexoutofrangeexception
nodemon
coupon
android-ffmpeg
vim-syntax-highlighting
appery.io
pi
sencha-architect
evosuite
family-tree
db-schema
wso2dss
equation
opscenter
android-build
android-7.1-nougat
vorlon
hasownproperty
synopsys-vcs
itil
vibration
jwrapper
spoon
timedelta
spawn-fcgi
arrangeoverride
r1soft
togglz
divider
cirqus
adobe-dps
protractor-net
smslib
cpanm
ekeventstore
agsxmpp
seeding
rgs
irssi
resharper-plugins
duplicate-removal
out
angularjs-ng-show
kiwi
cxf-client
controltemplate
restriction
firstdata
httpwatch
svggraph
activator
complete.ly
stencils
iunknown
jquery-ui-selectable
nservicebus3
ctime
getprocaddress
ora-01426
python-sockets
function-overloading
actinic
smalldatetime
test-environments
pointer-arithmetic

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App