# Unable to load some can modules

**URL:** <https://forums.bitovi.com/t/unable-to-load-some-can-modules/495>\
**Category:** StealJS\
**Created:** [December 8, 2016, 3:26pm UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495 "2016-12-08T15:26:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjen\_Haayman](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Post date:** [December 8, 2016, 3:26pm UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495/1 "2016-12-08T15:26:20Z")

</div>

I often don’t understand how steal is supposed to work

I’ve got these two files:  
src/Company/Config.js and src/Company/Config/Component.js

Config.js starts with:  
define([‘can-stache’, ‘./Config.stache’], function( stache, template ) {

which loads just fine

Component.js start with  
define([‘can-control’, ‘…/Config’], function( Control, Config ) {

which results in an error-message:  
GET [http://localhost/configurator/can-control.js](http://localhost/configurator/can-control.js) 404 (Not found)

Why?? What’s the difference?  
Can anyone explain?

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [December 8, 2016, 3:44pm UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495/2 "2016-12-08T15:44:24Z")

</div>

Probably you don’t have can-control installed in your `package.json` dependencies but can-stache is.

---

<div class="post-metadata">

**Author:** ![Arjen\_Haayman](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Post date:** [December 9, 2016, 8:02am UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495/3 "2016-12-09T08:02:50Z")

</div>

Yes, that was it, but then I still don’t understand. Doesn’t can-component itself use can-control? So when I have the higher-level module available, how come I don’t have the lower-level component?

---

<div class="post-metadata">

**Author:** ![chasen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/chasen/32/402_2.png) [@chasen](https://forums.bitovi.com/u/chasen)\
**Post date:** [December 9, 2016, 6:21pm UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495/4 "2016-12-09T18:21:17Z")

</div>

@matthewp can probably give a better answer, but I don’t think Steal will register the dependencies of your dependencies, so you won’t be able to require them unless they’re in your `package.json`.

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [December 9, 2016, 7:39pm UTC](https://forums.bitovi.com/t/unable-to-load-some-can-modules/495/5 "2016-12-09T19:39:21Z")

</div>

That’s right, you can only import dependencies you depend on.
