Continuous Builds Demo - Error Loading

#1

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!

#2

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>