active
if set becomes true? The warnings in 3.x seem to indicate this should now be active:from="true"
btw @frank-dspeed I found the part of code that is causing the error from yesterday: It looks like this:
{{#if(isSaving)}}
<div class="loading"></div>
{{else}}
<can-slot this:from="this" name="submit">
<div class="btn-group" role="group" aria-label="Form Buttons">
<button type="button" class="btn btn-primary" on:el:click="dispatchEvent('submit')">
<i class="fa fa-floppy-o"></i> Submit</button>
<button type="button" class="btn btn-primary" on:el:click="dispatchEvent('cancel')">
<i class="fa fa-ban"></i> Cancel</button>
</div>
</can-slot>
{{/if}}
can-stache-bindings.js:257
- can-slot
element, attributeListener
is undefined, which eventually causes the error
{{#if active}}active="active"{{/if}}
forms for component tags but that is meant to discourage using the form for passing string values to components.
el:some-attr:from="vmProp"
forms but not add and remove the attribute based on truthiness.
:if
as a binding
el:active:if="active"
would set the attribute if active
was true in the parent scope.
but not add and remove the attribute based on truthiness
active
is a property on the viewModel
can-slot
element is not getting an attributeListener
assigned, but when the element is removed, it looks like can-stache-bindings is trying to remove the undefined attributeListener. Does it sound like I'm on the right track here?
Potentially unhandled rejection [4] renderInZone/zonePromise<@http://localhost:8080/src/index.stache:241:17
anonymous/</exports.then/</callback<@http://localhost:8080/node_modules/can-zone/lib/tasks.js:150:12
anonymous/</Task.prototype.run@http://localhost:8080/node_modules/can-zone/lib/zone.js:42:9
anonymous/</Zone.prototype.runTask@http://localhost:8080/node_modules/can-zone/lib/zone.js:184:9
anonymous/</Zone.prototype.waitFor/<@http://localhost:8080/node_modules/can-zone/lib/zone.js:285:10
wrapped@http://localhost:8080/node_modules/can-zone/lib/zones/debug.js:50:17
callWith/<@http://localhost:8080/node_modules/can-zone/lib/tasks.js:161:12
tryCatchReject@http://localhost:8080/node_modules/steal/steal.js:1183:28
runContinuation1@http://localhost:8080/node_modules/steal/steal.js:1142:4
makePromise/Rejected.prototype.when@http://localhost:8080/node_modules/steal/steal.js:963:4
makePromise/Pending.prototype.run@http://localhost:8080/node_modules/steal/steal.js:821:5
[3]</</</Scheduler.prototype._drain@http://localhost:8080/node_modules/steal/steal.js:97:4
Scheduler/this.drain@http://localhost:8080/node_modules/steal/steal.js:62:4
run@http://localhost:8080/node_modules/steal/steal.js:268:4
steal.js:140:22
unhandledRejection/logError<
http://localhost:8080/node_modules/steal/steal.js:140:22
report
http://localhost:8080/node_modules/steal/steal.js:167:5
flush
http://localhost:8080/node_modules/steal/steal.js:189:5
can-util/dom/*
can-dom-data-state
steal.js:7390 Error: Error loading "can-component@4.0.0#can-component" at http://192.168.9.83:8081/node_modules/can-component/can-component.js
Error loading "can-component@4.0.0#can-component" from "spectre-canjs@1.0.1#index" at http://192.168.9.83:8081/index.js
Did not find ./node_modules/can-dom-data-state/package.json
Unable to find a compatible version of can-dom-data-state
Wanted: ^1.0.0
Found: 0.2.0
npm ls --depth=0
and it will give you scary warnings if dependencies are missing
+-- can-component@4.0.1
| +-- can-dom-data-state@1.0.1
| `-- can-stache-bindings@4.0.3
| `-- can-dom-data-state@1.0.1
+-- can-connect@2.0.1
| `-- can-view-import@4.0.1
| `-- can-dom-data-state@1.0.1
+-- can-stache@4.0.2
| `-- can-dom-data-state@1.0.1
`-- can-util@3.11.2
+-- can-dom-data-state@0.2.0
+-- can-event-dom-enter@1.0.4
| `-- can-dom-data-state@0.2.0 deduped
`-- can-event-dom-radiochange@1.0.5
`-- can-dom-data-state@0.2.0 deduped
can-dom-data-state
?
System._traceData.parentMap
an-dom-data-state@0.2.0#can-dom-data-state:
can-util@3.11.2#dom/data/data
:
true
can-util@3.11.2#dom/mutation-observer/document/document
:
true
can-util@3.11.2#js/cid/get-cid
:
true
can-connect-feathers 4.0.0-pre.2 4.0.0-pre.2 3.7.1 applications
can-define-backup 1.0.0-pre.1 1.0.0-pre.1 0.0.1 applications
can-util 3.11.2 git git applications
done-autorender 2.0.0-pre.11 2.0.0-pre.11 1.5.2 applications
done-component 2.0.0-pre.1 2.0.0-pre.1 1.0.1 applications
done-serve 2.0.0-pre.0 2.0.0-pre.0 1.5.0 applications
can-define-backup
hasn't been published
**/*
can-migrate@2
Time elapsed: 0.415seconds
Processing 2 files...
Spawning 2 workers...
Sending 1 files to free worker...
Sending 1 files to free worker...
All done.
Results:
0 errors
2 unmodified
0 skipped
0 ok
src/**/*
if you want all the files in your src directory
**/*
{ Error: spawn E2BIG
at _errnoException (util.js:1003:13)
at ChildProcess.spawn (internal/child_process.js:340:11)
at Object.exports.spawn (child_process.js:499:9)
at module.exports (/usr/local/lib/node_modules/can-migrate/node_modules/execa/index.js:201:26)
at series (/usr/local/lib/node_modules/can-migrate/bin/can-migrate.js:132:12)
at /usr/local/lib/node_modules/can-migrate/node_modules/promise-map-series/index.js:11:14
at tryCatch (/usr/local/lib/node_modules/can-migrate/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/usr/local/lib/node_modules/can-migrate/node_modules/rsvp/dist/rsvp.js:538:13)
at publish (/usr/local/lib/node_modules/can-migrate/node_modules/rsvp/dist/rsvp.js:508:7)
at flush (/usr/local/lib/node_modules/can-migrate/node_modules/rsvp/dist/rsvp.js:2415:5) errno: 'E2BIG', code: 'E2BIG', syscall: 'spawn' }