# Continuous Builds Demo - Error Loading

**URL:** <https://forums.bitovi.com/t/continuous-builds-demo-error-loading/453>\
**Category:** StealJS\
**Created:** [October 25, 2016, 10:24am UTC](https://forums.bitovi.com/t/continuous-builds-demo-error-loading/453 "2016-10-25T10:24:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fp\_dev](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@fp\_dev](https://forums.bitovi.com/u/fp_dev)\
**Post date:** [October 25, 2016, 10:24am UTC](https://forums.bitovi.com/t/continuous-builds-demo-error-loading/453/1 "2016-10-25T10:24:19Z")

</div>

I’m new using StealJS.  
Trying the demo “Continuous Builds” using:  
`steal-tools --watch`  
I got some problems.

With the second step:

```
var can = require("can");
require("can/view/stache/");
require("./components/hello/");

```

after adding the components/hello/hello.js and components/hello/hello.stache, I got the following error:

`Potentially unhandled rejection [14] Error: Error loading "components/hello/hello.stache" at file::/path/to/project/components/hello/hello.stache.js`

Error loading “components/hello/hello.stache” from “main” at file:/path/to/project/main.js`

project path directory tree is the following:

```
./
├── components
│ └── hello
│ ├── hello.js
│ └── hello.stache
├── dist
│ └── bundles
│ ├── main.js
│ └── src
├── index.html
├── main.js
├── node_modules
│ ├── can
│ ├── http-server
│ └── steal   
└── package.json

```

Any suggestions?  
Thank you!

---

<div class="post-metadata">

**Author:** ![fp\_dev](https://avatars.discourse-cdn.com/v4/letter/f/13edae/32.png) [@fp\_dev](https://forums.bitovi.com/u/fp_dev)\
**Post date:** [October 26, 2016, 8:40am UTC](https://forums.bitovi.com/t/continuous-builds-demo-error-loading/453/2 "2016-10-26T08:40:11Z")

</div>

Solved!.

Enviroment problems. For me worked only with:

```
"dependencies": {
    "can": "^2.3.27",
    "jquery": "^2.2.4",
    "steal": "^0.16.41"
  }

```

However, I got a new error, in the browser:

```
GET http://127.0.0.1:8080/can.js 404 (Not Found) steal.js:2656 
Error loading "can" at http://127.0.0.1:8080/can.js steal.js:6363 
Error loading "can" from "main" at http://127.0.0.1:8080/main.js
Not Found: http://127.0.0.1:8080/can.js undefined
GET http://127.0.0.1:8080/jquery.js 404 (Not Found) steal.js:2656 
GET http://127.0.0.1:8080/can/view/stache/stache.js 404 (Not Found) steal.js:2656 
GET http://127.0.0.1:8080/components/hello/hello.stache.js 404 (Not Found) steal.js:2656

```

This isseus will be solved only if remove the attribute **env=“production”** in the tag of the index.html, but i don’t think this is the correct procedure(\*).

(\*) Need to build the project with steal-tools manually (continuous build fails sometimes), and change the tag in the index.html with.

`<script src="./node_modules/steal/steal.production.js env="production" main="main"></script>`
