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

Breeze and Angular2
Angular 2 hide/show template
Angular 2 RC1 - Auto import all used components inside a base component
Add Lodash to VS2015 Angular2 Project
cannot find module errors after upgrading to angular-2.0.0-rc.4
Angular 2 don't dectect change on an Observable
Convert date in format accepted by restService
Reset forms in Angular2
Angular 2 - App Component Protect
GetSentry RavenJS not importing in webpack build
Wait for Angular 2 to load/resolve FormBuilder/ControlGroups before rendering view/template
Angular2 CanActivate from beta to current RC3
Rxjs: Why this stream of array not recieving new values
Page transitions in Angular 2
Base64 image with charset=utf-8; not displayed in Ionic2
Getting a wrong object through behavior suject

Categories

HOME
audio
okta
openerp
sitecore8
local-storage
masonry
refactoring
less
accounting
autodesk-forge
monitoring
slack
houndify
dropzone.js
post
contiki
raspberry-pi3
chat
directshow
autofixture
interaction
salt-stack
face-recognition
business-objects
conv-neural-network
bind
derivative
integer
robots.txt
cpu-registers
actionlink
footable
graphic
ipc
sublimerepl
jung
maven-exec-plugin
gsutil
state
crossfilter
spamassassin
oracle-data-modeler
cachemanager
nerdtree
android-auto
enzyme
grayscale
sencha-architect
itunes-store
ole
enterprise-library-6
rt
equation-solving
monocle-scala
heyzap
ngdoc
sqlcommand
synopsys-vcs
spring-java-config
visual-c++-2013
launch-agent
aide-ide
ch
z-order
apple-watch-complication
eclipse-indigo
google-plus-domains
website-deployment
ionic-view
anonymity
tvml
ng-template
dsquery
octopress
cirqus
dynamics-nav-2009
custom-taxonomy
avm2
euclidean-distance
sql-server-2008-express
.a
kirby
ncbi
resin
coderunner
sql-job
unassigned-variable
typescript1.4
automapper-3
bonsaijs
android-handlerthread
httpwatch
microsoft-search-server
tiles2
rounded-corners
angularjs-e2e
mib
jquery-ui-selectable
set-theory
robohelp
ejbql
customer-support
actinic
pasteboard
cloning
log5j
ant4eclipse
wss-3.0
whiteboard
projective-geometry
isaserver

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