From 6fb57b59d11c31d93abb408bcc7f2a3130d74f7d Mon Sep 17 00:00:00 2001 From: Josh Hoff Date: Fri, 22 Nov 2019 11:56:00 -0600 Subject: [PATCH 1/2] Upgrade packages to prerelease versions of CanJS 6 The current error is below. can-simple-dom will need to be upgraded to support HTMLElement. ReferenceError: HTMLElement is not defined at DeriveElement (file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-stache-element/src/can-stache-element.js:48:38) at Object. (file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-stache-element/src/can-stache-element.js:107:44) at file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-stache-element/src/can-stache-element.js:109:4 at file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-stache-element/src/can-stache-element.js:109:98 at ContextifyScript.Script.runInThisContext (vm.js:50:33) at Object.runInThisContext (vm.js:139:38) at doEval (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/steal/main.js:4788:10) at __eval (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/steal/main.js:4892:7) at Loader.exec [as __exec] (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/steal/main.js:2896:5) at load.metadata.execute (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/steal/main.js:3869:13) (node:51397) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:51397) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Failed promise: TypeError: betweenTagsView is not a function at Constructor.setup (file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-component/can-component.js:676:21) at Function.newInstance (file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-construct/can-construct.js:307:22) at Constructor.init (file:/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-construct/can-construct.js:662:29) at new Constructor (eval at (evalmachine.:93:58), :3:34) at eval (file:/Users/josh/projects/bitovi/oss/donejs-chat/src/app.js!eval:52:15) at /Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-zone/lib/tasks.js:167:15 at Task.run (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-zone/lib/zone.js:39:17) at Zone.runTask (/Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-zone/lib/zone.js:184:14) at /Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-zone/lib/zone.js:285:15 at /Users/josh/projects/bitovi/oss/donejs-chat/node_modules/can-zone/lib/tasks.js:178:21 --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f70bcf8..402c463 100644 --- a/package.json +++ b/package.json @@ -43,17 +43,17 @@ ] }, "dependencies": { - "bit-tabs": "^2.0.1", + "bit-tabs": "^v3.0.0-pre.0", "body-parser": "^1.15.0", "bootstrap": "^3.3.7", - "can": "^5.16.0", + "can": "^6.2.7", "can-route-pushstate": "^5.0.7", - "can-stache-route-helpers": "^1.1.1", + "can-stache-route-helpers": "^2.0.0", "can-zone": "^1.0.0", - "done-autorender": "^2.4.3", - "done-component": "^2.2.0", + "done-autorender": "^v3.0.0-pre.1", + "done-component": "^v3.0.0-pre.0 ", "done-css": "^3.0.2", - "done-serve": "^3.0.0-pre.3", + "done-serve": "^3.3.1", "express-ie-cors": "^0.9.4", "feathers": "^1.1.1", "feathers-hooks": "^0.5.1", @@ -62,7 +62,7 @@ "steal": "^2.1.6", "steal-less": "^1.2.2", "steal-socket.io": "^4.1.0", - "steal-stache": "^4.1.2" + "steal-stache": "^5.0.0" }, "devDependencies": { "can-debug": "^2.0.1", From ce4bc3139c768f1c66e4693a2c8137d319931095 Mon Sep 17 00:00:00 2001 From: Josh Hoff Date: Mon, 25 Nov 2019 15:45:38 -0600 Subject: [PATCH 2/2] Fix usage for CanJS 6 --- src/pages/home.component | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/home.component b/src/pages/home.component index adffaf8..de2bf36 100644 --- a/src/pages/home.component +++ b/src/pages/home.component @@ -16,13 +16,15 @@ - -

CanJS provides the MV*

-
- -

StealJS provides the infrastructure.

-
-
+ + +

CanJS provides the MV*

+
+ +

StealJS provides the infrastructure.

+
+
+