These are chat archives for canjs/canjs

Jul 2018
Jul 26 2018 16:26
Is there a way to make a set of helpers avail in inheriting classes?
export default Component.extend({
  tag: 'base-component',
  helpers: {
    formatNumber: Helpers.formatNumber,
Justin Meyer
Jul 26 2018 16:49
@sronsiek unfortunately, inheritance doesn't work directly yet. What I do is create a bunch of mixins like:
baseComponent = {
And then mix those in to what you pass to Component.extend({ .. }
var base = canReflect.deepAssign({}, baseComponent)
Component.extend( canReflect.deepAssign(base, {
  tag: "your-component"
There's an issue for extending: canjs/can-component#76
Gregg Roemhildt
Jul 26 2018 22:06
Hi guys. Using can-stache-loader with webpack. I'm running into a case where its trying to parse the built function:
    module: {
        rules: [{
            test: /\.stache$/,
            use: [{loader: 'can-stache-loader'}],
Ivo Pinheiro
Jul 26 2018 23:23
Using the version of can-list@3.2.2.
I'm having this error:
TypeError: Cannot add property _cid, object is not extensible
Ivo Pinheiro
Jul 26 2018 23:31
Is there a simple workaround for this error?