Error load files in lasted version of steal


#1

Hi all,

I got some errors when updating to new version of steal (current version is ^1.0.6). But if I use version ^0.16.21 then it works fine. Does someone know how to fix this?

  • Errors in console:
    GET localhost:8080/myhub.less.js 404 (Not Found)
    GET localhost:8080/myhub.less/index.js 404 (Not Found)
    Error loading “steal-exp@1.0.0#myhub.less” at http://localhost:8080/myhub.less.js
    Error loading “steal-exp@1.0.0#myhub.less” from “steal-exp@1.0.0#myhub” at localhost:8080/myhub.js
    Not Found: localhost:8080/myhub.less/index.js undefined

  • my files:

-> package.json
{
“name”: “steal-exp”,
“version”: “1.0.0”,
“description”: “steal exmple”,
“main”: “myhub.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“author”: “”,
“license”: “ISC”,
“dependencies”: {
“jquery”: “^3.1.1”,
“steal”: “^1.0.6”
},
“devDependencies”: {
“steal-tools”: “^1.0.1”
}
}

-> myhub.html

Hello World!

-> myhub.js
import $ from “jquery”;
import “./myhub.less”;

$(“body”).html(“

Goodbye script tags!

”);

-> myhub.less
body h1 {
color: #2193C4;
}


#2

pls read the breaking changes here
http://stealjs.com/docs/StealJS.topics.migrating-one.html#breaking-changes

for your problem pls read http://stealjs.com/docs/StealJS.topics.migrating-one.html#css-and-less-plugins


#3

@pYr0x thanks u so much :))