Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : config of new steal

$
0
0
Thanks,

I tried it out and made main.js:
  1. import $ from "jquery";
  2. import Init from 'myapp/core/init/';

but it is the same error

  1. TypeError: steal.type is not a function

What I don't get is your hint with ES6. When my main.js looks like

  1. steal(
  2.     'myapp/core/init',
  3. function(Init){
  4.     new Init($('body'));
  5. })

it does not work either.


Viewing all articles
Browse latest Browse all 3491

Trending Articles