# Index detected as System.register but didn't execute

**URL:** <https://forums.bitovi.com/t/index-detected-as-system-register-but-didnt-execute/637>\
**Category:** StealJS\
**Created:** [May 12, 2017, 8:23am UTC](https://forums.bitovi.com/t/index-detected-as-system-register-but-didnt-execute/637 "2017-05-12T08:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithanaroy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/nithanaroy/32/225_2.png) [@Nithanaroy](https://forums.bitovi.com/u/Nithanaroy)\
**Post date:** [May 12, 2017, 8:23am UTC](https://forums.bitovi.com/t/index-detected-as-system-register-but-didnt-execute/637/1 "2017-05-12T08:23:43Z")

</div>

Why am I seeing this error:

```auto
TypeError: Error loading "testDist/bundles/test/index" at http://localhost:8080/testDist/bundles/test/index.js
testDist/bundles/test/index detected as System.register but didn't execute.
    at Loader.loader.instantiate (steal.js:3812)
    at Loader.loader.instantiate (steal.js:4153)
    at Loader.loader.instantiate (steal.js:4266)
    at Loader.loader.instantiate (steal.js:4590)
    at Loader.loader.instantiate (steal.js:4906)
    at Loader.loader.instantiate (steal.js:5743)
    at Loader.loader.instantiate (steal.js:5884)
    at Loader.loader.instantiate (steal.js:6000)
    at steal.js:1553
    at tryCatchReject (steal.js:1183)

```

when generating index.js using steal build using this config via grunt task:

```json
{
        "options": {
          "steal": {
            "main": "test/index",
            "config": __dirname + "/package.json!npm"
          },
          "buildOptions": {
            "dest": "testDist",
            "minify": false,
            "bundleSteal": true
          }
        }
      }

```

and package.json as

```json
"steal": {
    "plugins": [
      "steal-stache",
      "steal-less"
    ]
  }

```
