Now it tries to load my main file at /resources/stealjs/0.15.8/dist/bundles/main.js
But it’s located in a different location /MyModule/main/dist/bundles/main.js
Is it possible to point steal in the right direction?
Or do we have npm install steal for every module?
But now it tries to load canjs from /MyModule/main/
CanJS is installed with npm.
my main.js file looks like this: import can from 'can'; console.log(can.VERSION);
This is the error i get in the browser: steal.production.js:8 Error loading "can" at https://labs.domain.com/MyModule/main/can.js Error loading "can" from "main" at https://labs.domain.com/MyModule/main/main.js
I installed steal with nmp and it loads steal.js correct, but it throws a 404 on package.json and main.js.
Because it tries to load from /Upload/Index/package.json and /Upload/Index/main.js.
Whatever is in our URL gets redirected to a /index.php, which points it to the right files.
So if our URL looks like : www.mydomain.com/Upload/Index/param1/paramValue/param2/paramValue
Steal will try to load my package.json & main.js like this :
/Upload/Index/param1/paramValue/param2/paramValue/main.js
What I expected is that it would load from the base-url (/modules/Upload/main-steal) where all my front-end files for the Upload module are situated.
please note also, that my package.json is always under main-steal/
cc @matthewp i think we sould make config a little bit more clear. config will always overwrite the baseURL settings. do you have any thought, if we should refactor the code or document that better?