by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:52
    lukewhyte removed as member
  • 17:52
    kross-hub removed as member
  • 17:51
    ilyavf removed as member
  • 17:41
    lukewhyte added as member
  • 17:41
    kross-hub added as member
  • 17:41
    ilyavf added as member
  • Jul 08 20:02
    cherifGsoul review_requested #5497
  • Jul 08 18:32
    cherifGsoul synchronize #5497
  • Jul 08 18:32

    cherifGsoul on remove-old-ecosystem-packages

    Remove packages from ecosystem (compare)

  • Jul 08 18:26
    cherifGsoul synchronize #5497
  • Jul 08 18:26

    cherifGsoul on remove-old-ecosystem-packages

    Remove test files and es files (compare)

  • Jul 08 18:20
    cherifGsoul opened #5497
  • Jul 08 18:19

    cherifGsoul on remove-old-ecosystem-packages

    Remove can-connect-feathers and… (compare)

  • Jul 07 20:29
  • Jul 06 18:14
    cherifGsoul commented #5495
  • Jul 06 17:15
    cherifGsoul commented #5495
  • Jul 02 19:09

    cherifGsoul on master

    Update Canjs5 minor version in … (compare)

  • Jul 02 18:01

    cherifGsoul on master

    Update dist for release (compare)

  • Jul 02 18:01

    cherifGsoul on v6.5.0

    Update dist for release 6.5.0 (compare)

  • Jul 02 17:46

    cherifGsoul on master

    Bump can-ajax to 2.4.6 (#5496) (compare)

Gira Minus
@gKreator
Its just kinda preferred to only load what is needed
Did u try to delete ur node_modules folder and reinstall?
DaveO
@DaveO-Home
steal-tools selects only what is used for production, I think?
Actually that is what I eventually did to get things working again, the the Control.extend issue remain.
Gira Minus
@gKreator
So #2 is working?
DaveO
@DaveO-Home
Not without my change to the individual module can-control.
Gira Minus
@gKreator
One sec let me get to my pc

did you try

steal("can/control/"

?
DaveO
@DaveO-Home
Will try...
Got this: TypeError: Error loading "resume@0.0.3#appl/js/index" at http://localhost:8080/resume/appl/js/index.js
Control.extend is not a function
Stack trace:
anonymous/<@http://localhost:8080/resume/appl/js/utils/basecontrol.js:11:20
steal/stealInstantiateResult.execute@http://localhost:8080/resume/node_modules/steal/steal.js:5707:24
linkDynamicModule@http://localhost:8080/resume/node_modules/steal/steal.js:3659:18
linkDynamicModule@http://localhost:8080/resume/node_modules/steal/steal.js:3653:11
linkDynamicModule@http://localhost:8080/resume/node_modules/steal/steal.js:3653:11
linkDynamicModule@http://localhost:8080/resume/node_modules/steal/steal.js:3653:11
link@http://localhost:8080/resume/node_modules/steal/steal.js:3518:11
register/loader.instantiate/</<.execute@http://localhost:8080/resume/node_modules/steal/steal.js:3850:11
doDynamicExecute@http://localhost:8080/resume/node_modules/steal/steal.js:1969:20
link@http://localhost:8080/resume/node_modules/steal/steal.js:2017:24
doLink@http://localhost:8080/resume/node_modules/steal/steal.js:1791:7
Gira Minus
@gKreator
can you do a console.log( Control );
before Control.extend
DaveO
@DaveO-Home
Sure...
DaveO
@DaveO-Home
Control=[object Object] basecontrol.js:10:1
Control.extend=undefined
Gira Minus
@gKreator
weird..
how do you require in component?
or route
DaveO
@DaveO-Home
I use require("package.json!npm");
Gira Minus
@gKreator
then you have can.Component?
DaveO
@DaveO-Home
Yes
Gira Minus
@gKreator
but can.Control does not work?
DaveO
@DaveO-Home
let me check on component
I don't explicitly use can.component
Gira Minus
@gKreator
Umm want to send me your source code? It would help me debug this allot quicker.
DaveO
@DaveO-Home
Here's the steal... steal("app",
"alert",
"helpers",
"underscorestring",
"can/control",
"can/map/define",
"can/construct/super",
function (App, Alert, Helpers, S, Control) {
_.mixin(S.exports());
console.log("Control="+Control);
console.log("Control.extend="+Control.extend);
return Control.extend({
init: function (element, options) {
this._super(element, options);
}
Gira Minus
@gKreator
run
console.log(Control);
instead of
console.log("Control="+Control);
so you can actually see the object itself rather then the typeof
also try
can.Control.extend
rather then Control.extend
DaveO
@DaveO-Home
Actually I did run console.dir but couldn't do a select all
Gira Minus
@gKreator
blob
This was from one of my projects where I used requireJs to load canjs2
I use es6 imports now
blob
with canjs3
DaveO
@DaveO-Home
This was working before 3.4.1... I can live with can-control but something is wrong with can/control
Gira Minus
@gKreator
this is kinda why you should define each on manually so that you have version control
because similar things have happened to me where they push an update with a bug
blob
I would try to mimic this core as close as possible https://github.com/donejs/bitballs/tree/master/public
DaveO
@DaveO-Home
The dependency in can/package.json for control is "can-control": "3.0.5",
Is ES6 now replacing steal?
Gira Minus
@gKreator
not necessarily, steal just works with es6 and es6 is easier then amd
than*
DaveO
@DaveO-Home
can I mix define() with steal() in the same .js file?
Gira Minus
@gKreator
I've never tried that
unless you mean when importing then yes
DaveO
@DaveO-Home
Actually, I meant import xxx from..... and steal().