# Custom tag already defined

**URL:** <https://forums.bitovi.com/t/custom-tag-already-defined/452>\
**Category:** StealJS\
**Created:** [October 22, 2016, 5:35am UTC](https://forums.bitovi.com/t/custom-tag-already-defined/452 "2016-10-22T05:35:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [October 22, 2016, 5:35am UTC](https://forums.bitovi.com/t/custom-tag-already-defined/452/1 "2016-10-22T05:35:54Z")

</div>

I have a _properties_ view that I am sharing between an add and an edit view. For my main component I import the various sub-components, e.g.:

customer.js:

```auto
import './views/properties';
import './add/';
import './edit/';

```

I then imported the properties view again from the `add` view:

add.js

```auto
import '../views/properties';

```

An error was logged to the console stating the the custom tag had already been defined. It seems as though the `/views/properties’ module was being loaded twice.

Does this have something to do with the path?

I refactored out the model to a separate file since that is the actual reusable bit that I’m interested in but it did seem strange that the module was loaded twice since modules are supposed to be singletons. The only reason that I can think of is that the path isn’t “normalized”… ideas?

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [October 23, 2016, 12:16am UTC](https://forums.bitovi.com/t/custom-tag-already-defined/452/2 "2016-10-23T00:16:25Z")

</div>

my guess is that the same module is being loaded twice under different names.

Checkout System.\_traceData.

---

<div class="post-metadata">

**Author:** ![eben\_roux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/eben_roux/32/380_2.png) [@eben\_roux](https://forums.bitovi.com/u/eben_roux)\
**Post date:** [October 23, 2016, 5:58am UTC](https://forums.bitovi.com/t/custom-tag-already-defined/452/3 "2016-10-23T05:58:23Z")

</div>

I refactored my code slightly to get it working and now I cannot reproduce the error.

I had the same suspicion but didn’t think to look at the trace data. I’ll have a look at the trace data the next time I run into this.
