Questions tagged [stealjs]

a collection of command line and JavaScript client utilities for building, packaging, and sharing JavaScript applications.

StealJS is a collection of command line and JavaScript client utilities for building, packaging, and sharing JavaScript applications.

It is a part of and features:

  • dependency management
  • JS/CSS concatenation and compression
  • logging
  • code generators
  • code cleaner

More information

27 questions
1
vote
1 answer

How to debug StealJS with IE 11 and Firefox 36?

I use the minor tag of StealJS to load my JS files and everything seems to work, but today I recognized that I'm simply unable to debug my code in IE 11 and Firefox 36. Until now I only used the new Opera based on Chrome/Blink, currently version 27,…
Thorsten Schöning
  • 3,501
  • 2
  • 25
  • 46
1
vote
1 answer

CanJS with StealJS 0.3.0

I am playing around on an app with canjs 2.1.0 and stealjs 0.3.0: I have stealconfig.js like below: System.config({ map: { "can/util/util": "can/util/jquery/jquery", "jquery/jquery": "jquery" }, paths: { "jquery":…
Mason Shin
  • 11
  • 4
1
vote
1 answer

JavascriptMVC: CanJS loading without jQuery

I cannot find in the documentation any "official" way to steal (stealjs) canJS without loading jquery. The problem is that I'm working with Yii Framework (PHP) and some components need jquery before even i include myapp.js modules, that is i must…
th3n3rd
  • 375
  • 1
  • 3
  • 20
1
vote
3 answers

StealJS and CanJS

I'm having problems using canJS together with stealjs, i've cloned the repo of javascriptmvc (3.3 use canJS). Now i've this folder structure /js /can /documentjs /funcunit /plugins . . . In another part of my application i've a…
th3n3rd
  • 375
  • 1
  • 3
  • 20
1
vote
0 answers

Passing custom build options to closure when building with stealjs

I am using JavascriptMVC to build an app with StealJS build functionality. This is my build.js: load("steal/rhino/rhino.js"); steal('steal/build').then('steal/build/scripts','steal/build/styles',function(){ …
mritz_p
  • 3,008
  • 3
  • 28
  • 40
1
vote
1 answer

What is the best way to store constant values in JavasciptMVC

I know there are no constants in JavaScript however I would like to separately store configuration values to make them easy to find and tweak. Create a separate $.Class and store the key-value pairs in the static part Or have them read from a JSON…
ene.andrei
  • 187
  • 1
  • 2
  • 9
1
vote
1 answer

Load google map api aynchronously using steal.js

I am trying to executing the following code using steal.js (from javascriptmvc extention): steal("http://maps.google.com/maps/api/js?sensor=true"); This is working for all other scripts. But, in case of google map api url, its saying "'sensor'…
Rana
  • 5,912
  • 12
  • 58
  • 91
0
votes
1 answer

Potentially unhandled rejection [3] TypeError: Cannot read properties of undefined (reading 'prototype')

Recently, in my React application, I updated the following dependencies: jquery-ui from version 1.12.1 to version 1.13.2, and gridstack from version 0.4.0 to version 7.1.1. In my local environment the application works fine. However, now the…
Ninita
  • 1,209
  • 2
  • 19
  • 45
0
votes
1 answer

Steal.js: jQuery not found after compilation

I am facing a strange error which I can't get resolved after googling and poking around. So in my main.js, I have import $ from 'jquery'; Loading my dev.html all works fine, but after running nmp run build, and loading index.html, I…
nada
  • 1
0
votes
1 answer

React - Error when import dependency that depends from another already on package.json

On my package.json I have these dependencies: "dependencies": { "@my-company-repository/componentXPTO": "19.8.5", "@my-company-repository/commonComponents": "18.0.2", "react": "16.12.0", "react-dom": "16.12.0", …
Ninita
  • 1,209
  • 2
  • 19
  • 45
0
votes
0 answers

Global/window assignment or console imports failure

I fail to either set global or window property or require/import within browser console, which makes live testing impossible. I avoid running this code in SSR with platform.isNode condition.
janat08
  • 1,725
  • 2
  • 16
  • 27
0
votes
1 answer

How to Repath CommonJS modules in StealJS

I'm probably doing something wrong, so feel free to question all things. I'm using an npm package xrm-mock for a MS CRM mocking framework. I've setup my config as such steal.config({ meta: { "dependencyModule": { deps: [ …
Daryl
  • 18,592
  • 9
  • 78
  • 145
0
votes
1 answer

Console Error in steal.js: "Cannot define property _instanceDefinitions"

Loading a page produces the following error: steal.js:140 Potentially unhandled rejection [1] TypeError: Cannot define property _instanceDefinitions, object is not extensible at Function.defineProperty () at Object.defineExpando…
Oscar
  • 59
  • 1
  • 5
0
votes
1 answer

`this` is not being bound in prototype method

I have some weird issue an arrow function: Arrow functions are supposed to have a context of this bound when in a prototype method (es6 class method in this case), but in this case the 'this' is undef inside the 1st lambda apply(bookings) { if…
SuperUberDuper
  • 9,242
  • 9
  • 39
  • 72
0
votes
1 answer

Common module format for isomorphic/universal javascript application

I'm trying to write isomorphic/universal app and there are many complications to tie all stuff together. What i need is common (not to be confused with commonjs) modules format for client and server with posibility of dynamic loading and es6/7…
ForceUser
  • 1,129
  • 1
  • 15
  • 23
1
2