# StealJS

**URL:** https://forums.bitovi.com/c/stealjs/5.md

[Latest](https://forums.bitovi.com/latest.md) · [Categories](https://forums.bitovi.com/categories.md) · [Tags](https://forums.bitovi.com/tags.md)

---

## [About the StealJS category](https://forums.bitovi.com/t/about-the-stealjs-category/15)

<div class="topic-metadata">

**Author:** [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Replies:** 0

</div>

Discuss StealJS, DoneJS’s dependency loader and builder. File bugs and feature requests on GitHub. Want to chat? Join our Slack, then head over to the #stealjs channel.

---

## [Using Karma to test StealJS](https://forums.bitovi.com/t/using-karma-to-test-stealjs/70)

<div class="topic-metadata">

**Author:** [@blink1073](https://forums.bitovi.com/u/blink1073)\
**Replies:** 7\
**Last updated:** [February 7, 2020, 7:29pm UTC](https://forums.bitovi.com/t/using-karma-to-test-stealjs/70 "2020-02-07T19:29:23Z")

</div>

Is there an example anywhere of using Karma to test a StealJS app?

---

## [Bootstrapjs not loading by StealJS](https://forums.bitovi.com/t/bootstrapjs-not-loading-by-stealjs/759)

<div class="topic-metadata">

**Author:** [@northdecoder](https://forums.bitovi.com/u/northdecoder)\
**Replies:** 9\
**Last updated:** [December 11, 2017, 11:38pm UTC](https://forums.bitovi.com/t/bootstrapjs-not-loading-by-stealjs/759 "2017-12-11T23:38:39Z")

</div>

I see in the forum and github issues there have been some comments about how to load bootstrap and the difficulties? So I put together a plunkr to test so I could use it in a how-to-presentation at our next meetup, and …

---

## [Discuss: Stealing CSS](https://forums.bitovi.com/t/discuss-stealing-css/997)

<div class="topic-metadata">

**Author:** [@leoj3n](https://forums.bitovi.com/u/leoj3n)\
**Replies:** 3\
**Last updated:** [November 18, 2018, 1:19am UTC](https://forums.bitovi.com/t/discuss-stealing-css/997 "2018-11-18T01:19:12Z")

</div>

I see a lot of buzz around reducing blocking caused by CSS. I think this is an exciting area to think about. Would it be possible to do something similar to incremental rendering but for CSS? There are automated tools to…

---

## [Errors trying to import sentryio into web application](https://forums.bitovi.com/t/errors-trying-to-import-sentryio-into-web-application/988)

<div class="topic-metadata">

**Author:** [@ptc](https://forums.bitovi.com/u/ptc)\
**Replies:** 8\
**Last updated:** [November 8, 2018, 7:49pm UTC](https://forums.bitovi.com/t/errors-trying-to-import-sentryio-into-web-application/988 "2018-11-08T19:49:51Z")

</div>

I am trying to import sentryio into my appliction using steal 0.16.10. However every method of importing I have tried results in some kind of error. I have successfully imported sentryio but this required I map out all o…

---

## [Using async functions and generators with StealJS](https://forums.bitovi.com/t/using-async-functions-and-generators-with-stealjs/966)

<div class="topic-metadata">

**Author:** [@imaustink](https://forums.bitovi.com/u/imaustink)\
**Replies:** 1\
**Last updated:** [September 19, 2018, 8:46pm UTC](https://forums.bitovi.com/t/using-async-functions-and-generators-with-stealjs/966 "2018-09-19T20:46:30Z")

</div>

When attempting to use async functions in my DoneJS project, the production build was throwing TypeError: define is not a function after importing babel-polyfill. The configuration outlined here solved my problem: https…

---

## [Can-util/import || steal.import - 404 when build](https://forums.bitovi.com/t/can-util-import-steal-import-404-when-build/958)

<div class="topic-metadata">

**Author:** [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Replies:** 5\
**Last updated:** [September 11, 2018, 7:26am UTC](https://forums.bitovi.com/t/can-util-import-steal-import-404-when-build/958 "2018-09-11T07:26:00Z")

</div>

I’m importing some config from a js file like this: import importModule from 'can-util/js/import/import'; //... importModule(this.config.path).then(module =\> { console.log(module.default) }) config.path looks like th…

---

## [Load content from an other domain](https://forums.bitovi.com/t/load-content-from-an-other-domain/920)

<div class="topic-metadata">

**Author:** [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Replies:** 3\
**Last updated:** [June 29, 2018, 2:44pm UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920 "2018-06-29T14:44:35Z")

</div>

This is our situation: we have an app on https://www.domain.com but our static resources get served from another domain https://static1.do-main.net. Our script tag that loads the initial js looks like this: \<script …

---

## [Can't merely import AWS amplify or aws appsync](https://forums.bitovi.com/t/cant-merely-import-aws-amplify-or-aws-appsync/914)

<div class="topic-metadata">

**Author:** [@janat08](https://forums.bitovi.com/u/janat08)\
**Replies:** 28\
**Last updated:** [June 26, 2018, 9:28pm UTC](https://forums.bitovi.com/t/cant-merely-import-aws-amplify-or-aws-appsync/914 "2018-06-26T21:28:46Z")

</div>

Upon importing either of the libraries compiler throws errors. I believe both of them expect util package to be installed (appsync definitely does) Amplify- https://www.npmjs.com/package/aws-amplify: import Amplify fro…

---

## [Load times when developing](https://forums.bitovi.com/t/load-times-when-developing/916)

<div class="topic-metadata">

**Author:** [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Replies:** 4\
**Last updated:** [June 22, 2018, 6:34am UTC](https://forums.bitovi.com/t/load-times-when-developing/916 "2018-06-22T06:34:40Z")

</div>

Do you have any tips on improving load times when we’re in “development” mode? So when our JS is not build. We see a lot of requests for all the .js and .less files, a page takes up to 35 secs to load in Chrome (Edge an…

---

## [Suppressing console.log messages in production deployment](https://forums.bitovi.com/t/suppressing-console-log-messages-in-production-deployment/887)

<div class="topic-metadata">

**Author:** [@robfoweraker](https://forums.bitovi.com/u/robfoweraker)\
**Replies:** 3\
**Last updated:** [May 17, 2018, 2:59pm UTC](https://forums.bitovi.com/t/suppressing-console-log-messages-in-production-deployment/887 "2018-05-17T14:59:42Z")

</div>

Hi, I seem to remember seeing somewhere, that it is possible to suppress console.log messages in production deployment by putting some special comments around them in the JS. These console.log expressions are then remov…

---

## [Better 404 Error Messages in DoneJS](https://forums.bitovi.com/t/better-404-error-messages-in-donejs/815)

<div class="topic-metadata">

**Author:** [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Replies:** 0\
**Last updated:** [March 1, 2018, 6:56pm UTC](https://forums.bitovi.com/t/better-404-error-messages-in-donejs/815 "2018-03-01T18:56:38Z")

</div>

Steal 1.7.0 introduces improved error messages when we encounter a 404. Previously you would see an error like this: \[36687970-0de91776-1af9-11e8-83e3-b48489f9aa63\] Now, instead, you will see this: \[36808550-6b835694…

---

## [Steal build path for bundleAsset](https://forums.bitovi.com/t/steal-build-path-for-bundleasset/799)

<div class="topic-metadata">

**Author:** [@fp\_dev](https://forums.bitovi.com/u/fp_dev)\
**Replies:** 2\
**Last updated:** [January 27, 2018, 7:16pm UTC](https://forums.bitovi.com/t/steal-build-path-for-bundleasset/799 "2018-01-27T19:16:31Z")

</div>

Hi everybody, I’m developping an application with steal+canjs (v3). It’s a standard application with canjjs components and npm modules. I would like to add the img directory (that will hold image shared across differe…

---

## [Loading D3js with StealJS](https://forums.bitovi.com/t/loading-d3js-with-stealjs/790)

<div class="topic-metadata">

**Author:** [@robfoweraker](https://forums.bitovi.com/u/robfoweraker)\
**Replies:** 2\
**Last updated:** [January 5, 2018, 10:57am UTC](https://forums.bitovi.com/t/loading-d3js-with-stealjs/790 "2018-01-05T10:57:42Z")

</div>

Hi, I’m trying to use d3 v4 in my project. I added it in my package.json as a dependency. I am using StealJS to load modules. After installing via npm, I added the following in my component viewmodel to use d3 import \*…

---

## [Steal-tools build bundling font-awesome fonts](https://forums.bitovi.com/t/steal-tools-build-bundling-font-awesome-fonts/755)

<div class="topic-metadata">

**Author:** [@robfoweraker](https://forums.bitovi.com/u/robfoweraker)\
**Replies:** 6\
**Last updated:** [December 12, 2017, 8:28am UTC](https://forums.bitovi.com/t/steal-tools-build-bundling-font-awesome-fonts/755 "2017-12-12T08:28:40Z")

</div>

It’s me again, another question (sorry). I’m using steal-tools@1.3.3 to bundle the frontend app. One of the dependencies is font-awesome@4.7.0. This is working fine when using steal to load everything. It had been work…

---

## [How to resolve version conflict?](https://forums.bitovi.com/t/how-to-resolve-version-conflict/764)

<div class="topic-metadata">

**Author:** [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Replies:** 1\
**Last updated:** [November 23, 2017, 12:17pm UTC](https://forums.bitovi.com/t/how-to-resolve-version-conflict/764 "2017-11-23T12:17:41Z")

</div>

Hi, I’ve just updated my npm modules and now I get an error message that there are 2 different versions of can-dom-data-state. How to prevent this? Or is it a bug? $ npm ls can-dom-data-state energie\_transitie@1.0.0 /s…

---

## [Access package.json version from frontend](https://forums.bitovi.com/t/access-package-json-version-from-frontend/752)

<div class="topic-metadata">

**Author:** [@robfoweraker](https://forums.bitovi.com/u/robfoweraker)\
**Replies:** 7\
**Last updated:** [November 15, 2017, 8:12pm UTC](https://forums.bitovi.com/t/access-package-json-version-from-frontend/752 "2017-11-15T20:12:59Z")

</div>

Hi, I’m just starting a new project where the application version has to be displayable in an about page on the frontend. I would like to get this from the package.json version. I am using stealjs with canjs (all latest…

---

## [Can't get Leaflet not to load](https://forums.bitovi.com/t/cant-get-leaflet-not-to-load/748)

<div class="topic-metadata">

**Author:** [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Replies:** 2\
**Last updated:** [November 8, 2017, 6:27pm UTC](https://forums.bitovi.com/t/cant-get-leaflet-not-to-load/748 "2017-11-08T18:27:26Z")

</div>

Hi, I have to create a script that is eval’d in an environment where window.L is already present. I need the following npm packages leaflet leaflet.Editable leaflet.path.drag The following code loads Leaflet twic…

---

## [Steal refuses to load TinyMCE](https://forums.bitovi.com/t/steal-refuses-to-load-tinymce/217)

<div class="topic-metadata">

**Author:** [@tracer99](https://forums.bitovi.com/u/tracer99)\
**Replies:** 29\
**Last updated:** [April 7, 2016, 6:05pm UTC](https://forums.bitovi.com/t/steal-refuses-to-load-tinymce/217 "2016-04-07T18:05:19Z")

</div>

I have two projects, once is a traditional CanJS + StealJS application and the other a DoneJS application (from scratch). I'm trying to get TinyMCE loaded. I get a similar error in either project: TypeError: Error l…

---

## [StealJS: Multiple defines for anonymous module](https://forums.bitovi.com/t/stealjs-multiple-defines-for-anonymous-module/724)

<div class="topic-metadata">

**Author:** [@fp\_dev](https://forums.bitovi.com/u/fp_dev)\
**Replies:** 3\
**Last updated:** [September 26, 2017, 5:44am UTC](https://forums.bitovi.com/t/stealjs-multiple-defines-for-anonymous-module/724 "2017-09-26T05:44:08Z")

</div>

Hi everybody, I got this error when i try to import module ( the MDBootstrap js). TypeError: Multiple defines for anonymous module Is there any way to solve it? Thank you!

---

## [Source Maps with steal build](https://forums.bitovi.com/t/source-maps-with-steal-build/636)

<div class="topic-metadata">

**Author:** [@Nithanaroy](https://forums.bitovi.com/u/Nithanaroy)\
**Replies:** 6\
**Last updated:** [September 7, 2017, 6:26pm UTC](https://forums.bitovi.com/t/source-maps-with-steal-build/636 "2017-09-07T18:26:54Z")

</div>

Trying to use source maps in Chrome generated by steal build. After build, folder structure and less files are recognized by browser but not the corresponding component JS files nor Model folders / files in source folder…

---

## [Steal-tools 1.4.0 released](https://forums.bitovi.com/t/steal-tools-1-4-0-released/683)

<div class="topic-metadata">

**Author:** [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Replies:** 2\
**Last updated:** [July 20, 2017, 7:08pm UTC](https://forums.bitovi.com/t/steal-tools-1-4-0-released/683 "2017-07-20T19:08:06Z")

</div>

Hello everyone! steal-tools 1.4.0 has been released! This is a huge release as it contains the first version of the new stealTools.optimize() API, which if you have watched the contributor meetings is the "slim loader" w…

---

## [How to build without a single main](https://forums.bitovi.com/t/how-to-build-without-a-single-main/678)

<div class="topic-metadata">

**Author:** [@Wickman](https://forums.bitovi.com/u/Wickman)\
**Replies:** 7\
**Last updated:** [June 30, 2017, 8:10pm UTC](https://forums.bitovi.com/t/how-to-build-without-a-single-main/678 "2017-06-30T20:10:47Z")

</div>

Hi How can I create a production build from several modules without having a single main? My site is old-school with a bunch of separate pages (php), each having a javascript file. There is no single "myapp.js" for t…

---

## [Order of loading .less?](https://forums.bitovi.com/t/order-of-loading-less/658)

<div class="topic-metadata">

**Author:** [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Replies:** 0\
**Last updated:** [June 16, 2017, 6:35am UTC](https://forums.bitovi.com/t/order-of-loading-less/658 "2017-06-16T06:35:13Z")

</div>

I have some company-wide .less files that use lots of parameters for e.g. colors. The idea is to provide a .less file with all the defaults, but to override those parameters in per-app .less files I'm having trouble th…

---

## [Where to put babelOptions?](https://forums.bitovi.com/t/where-to-put-babeloptions/643)

<div class="topic-metadata">

**Author:** [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Replies:** 1\
**Last updated:** [May 18, 2017, 5:37pm UTC](https://forums.bitovi.com/t/where-to-put-babeloptions/643 "2017-05-18T17:37:25Z")

</div>

I want to use babelOptions: {sourceMap: 'inline'}, but I don't know where to insert the babelOptions. I've tried these: build.js: var stealTools = require('steal-tools'); //var babel = require('babel-core'); stea…

---

## [Index detected as System.register but didn't execute](https://forums.bitovi.com/t/index-detected-as-system-register-but-didnt-execute/637)

<div class="topic-metadata">

**Author:** [@Nithanaroy](https://forums.bitovi.com/u/Nithanaroy)\
**Replies:** 0\
**Last updated:** [May 12, 2017, 8:23am UTC](https://forums.bitovi.com/t/index-detected-as-system-register-but-didnt-execute/637 "2017-05-12T08:23:43Z")

</div>

Why am I seeing this error: TypeError: Error loading "testDist/bundles/test/index" at http://localhost:8080/testDist/bundles/test/index.js testDist/bundles/test/index detected as System.register but didn't execute. …

---

## [Building and electron app with stealJS](https://forums.bitovi.com/t/building-and-electron-app-with-stealjs/631)

<div class="topic-metadata">

**Author:** [@aberlioz](https://forums.bitovi.com/u/aberlioz)\
**Replies:** 2\
**Last updated:** [May 9, 2017, 2:44pm UTC](https://forums.bitovi.com/t/building-and-electron-app-with-stealjs/631 "2017-05-09T14:44:44Z")

</div>

Hello everyone, I am trying to package a steal based application with electron, without success. The application is fairly simple, just a single page displaying a message, and works fine with steal or after a build u…

---

## [Order of execution?](https://forums.bitovi.com/t/order-of-execution/588)

<div class="topic-metadata">

**Author:** [@Arjen\_Haayman](https://forums.bitovi.com/u/Arjen_Haayman)\
**Replies:** 8\
**Last updated:** [May 8, 2017, 11:45am UTC](https://forums.bitovi.com/t/order-of-execution/588 "2017-05-08T11:45:30Z")

</div>

I've got this file 'translations.js'. It should be loaded once to initialize i18next and jqueryI18next. In my main I make sure this file is imported early, before any translations are needed. This works fine in developme…

---

## [Cannot define property:fonts/fontawesome-webfont.ttf?v, object is not extensible](https://forums.bitovi.com/t/cannot-define-property-fonts-fontawesome-webfont-ttf-v-object-is-not-extensible/603)

<div class="topic-metadata">

**Author:** [@Alejandro\_Parra](https://forums.bitovi.com/u/Alejandro_Parra)\
**Replies:** 1\
**Last updated:** [April 29, 2017, 2:57am UTC](https://forums.bitovi.com/t/cannot-define-property-fonts-fontawesome-webfont-ttf-v-object-is-not-extensible/603 "2017-04-29T02:57:23Z")

</div>

Problems importing fontawesome I have problems when I want to import fontawesome and I do not know how to fix it. I'm developing a biballs style aplicaction. An application donejs runs on an express server launched by…

---

## [Done-ssr-middleware not working in express (404 steal.js)](https://forums.bitovi.com/t/done-ssr-middleware-not-working-in-express-404-steal-js/593)

<div class="topic-metadata">

**Author:** [@Alejandro\_Parra](https://forums.bitovi.com/u/Alejandro_Parra)\
**Replies:** 4\
**Last updated:** [April 8, 2017, 3:55am UTC](https://forums.bitovi.com/t/done-ssr-middleware-not-working-in-express-404-steal-js/593 "2017-04-08T03:55:36Z")

</div>

I have trouble running my app donejs in express. I'm using "done-ssr-middleware" to create a route as the documentation says. (https://github.com/donejs/done-ssr-middleware) The problem is when the page called is conf…

[Next page](https://forums.bitovi.com/c/stealjs/5.md?page=1)
