by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:24
    Tim-Erwin commented #393
  • 10:13
    Tim-Erwin opened #393
  • 02:10
    bigopon commented #659
  • Jul 08 10:44
    ayaanraj commented #659
  • Jul 07 03:19

    EisenbergEffect on master

    docs(backer): adding another wo… (compare)

  • Jul 06 19:11

    EisenbergEffect on master

    doc(backers): adding a new wood… (compare)

  • Jul 06 06:30
    ayaanraj commented #659
  • Jul 06 00:09
    glyad commented #265
  • Jul 05 21:18
    bigopon commented #659
  • Jul 05 13:11
    ayaanraj opened #659
  • Jul 05 11:47

    bigopon on master

    refactor(expandable): simplify … feat(expandable): allow specify… Revert "refactor(expandable): s… and 4 more (compare)

  • Jul 05 11:47
    bigopon closed #311
  • Jul 05 11:46

    bigopon on master

    fix(input-components): disabled… Merge pull request #313 from pl… (compare)

  • Jul 05 11:46
    bigopon closed #313
  • Jul 03 04:31
    stuartbale commented #83
  • Jul 03 04:31
    stuartbale commented #83
  • Jul 02 22:14

    EisenbergEffect on master

    doc(backers): add new wood and … (compare)

  • Jul 02 14:14
    EisenbergEffect closed #972
  • Jul 02 14:14
    EisenbergEffect closed #973
  • Jul 02 12:59
    pablicki opened #973
TonyLugg
@TonyLugg

tpAllowHalfOpen: false,
timeout: 120000,
keepAliveTimeout: 5000,
maxHeadersCount: null,
headersTimeout: 40000,
destroy: [Function],
[Symbol(IncomingMessage)]: [Function: IncomingMessage],
[Symbol(ServerResponse)]: [Function: ServerResponse],

[Symbol(kCapture)]: false,
[Symbol(asyncId)]: -1

},
domainThrown: false
}

Arne Deruwe
@arnederuwe
@TonyLugg I gave up on finding the permission denied thing, something is preventing your 3001 port to be used
The -by far- easiest solution is to just change the browsersync UI port number to something else:
1: open run.ts in aurelia_projects/tasks
2:
let serve = gulp.series(build, done => {
    bs.init(
        {
            ui: {                                    //  <===
                port: 8080,             // <=== your preference
            },                                        // <===
            online: false,
            open: CLIOptions.hasFlag("open") || project.platform.open,
...
most of the stuff you find online points to docker as the culprit, suggesting disabling it, but I need Docker, so.. :p
Corneliu
@corneliutusnea
Is there a room for Aurelia2 questions? I want to try the new Aurelia2 but having some issues with configuring routers. Can't find a good example of how to do it.
bigopon
@bigopon
@corneliutusnea you cna use both discord and discourse
we are trying to migrate the community over discord here https://discord.gg/RBtyM6u and discourse here https://discourse.aurelia.io/
Tom Longson
@nym
@bigopon trying to get my company to whitelist discord for this
Gary Kaganas
@Seebiscuit

I'm using the App Store. I use selectors to break handle smaller pieces of state. So, say that I have a deeply nested object:

const state = { 
  stuff: {
    innerStuffArray: []
  }
}

If I need to add an item to innerStuffArray I'd replace state with a state that has that item.

So, my selector basically does:

store.state.pipe(pluck("stuff"))

I subscribe to that selector like this:

store.state.pipe(pluck("stuff")).subscribe((stuff) => {
...do stuff...
})

But, when I'm replace state with a new item in innerStuffArray the subscription is not called.

bigopon
@bigopon
@Seebiscuit we are trying to move to discord & discourse for Q/A community building. Asking there should give you faster response
for your Q, can you help post it on either of those place? many users of the store are active there
Jake Aitchison
@milkshakeuk
Quick question when using @autoInject do instances get resolved as singleton or transient by default (without manually registering things in the IOC container)?
Arne Deruwe
@arnederuwe
@milkshakeuk from the docs:
Everything is an application-level singleton except for those things which are classified as "components", essentially custom elements, custom attributes and view-models created through the router or composition engine. You can change the lifetime of router and composition created components through explicit configuration.
Jake Aitchison
@milkshakeuk
thanks
John Tomaselli
@johntom
what html editor do you use in aurelia. Replacing kendo...
im testing froala
Arne Deruwe
@arnederuwe
We are in the midst of testing https://alex-d.github.io/Trumbowyg/
norgie
@norgie
The editor used by VS Code can be used as a replacement for e.g. Kendo.
John Tomaselli
@johntom
After testing froala, quill, pell, thumowyg I’ve finallly found one to rule them all, it workS out of the box With aurelia easy to bundle with au cli(system js) and has great documentation. Since I use aurelia slickgrid, the cost of adding jquert
John Tomaselli
@johntom
Since I use aurelia with Slickgrid the cost of adding query and bootstrap was not an issue. Easy to place multiple controls on view and use two way binding, It just works!
Arne Deruwe
@arnederuwe
@johntom sooo.... which one is it? :p
Jameson Strocsher
@jamesond
Does anyone know why if you have multiple tabs open for the same site that the router would navigate both tabs? Seems like I am missing a setting somewhere? Thank you
Arne Deruwe
@arnederuwe
@jamesond browsersync does that, you can turn it off in the browsersync config portal (default localhost 3000 I think)
Jameson Strocsher
@jamesond
@arnederuwe does browsersync automatically run in production as well? I might need to mess with a build config or something???
Brian
@wbrian-onlineed

I'm trying to split my CLI app into multiple bundles (different bundle for each major area of the app). I can't add bundle-specific dependencies without creating errors. They work fine if i put them in the vendor-bundle, but no other bundle. Is this is a known limitation?

"bundles": [
    {
        "name": "vendor-bundle.js",
        "dependencies": [
            // putting this dependency in vendor-bundle works:
            {
            "name": "chart.js",
            "path": "../node_modules/chart.js/dist",
            "main": "Chart.min.js"
            }
        ]
    },
    {
        "name": "foo-bundle.js",
        "source": [
            "[**/ux/foo/*.js]",
            "**/ux/foo/*.{css,html}"
        ],
        "dependencies": [
            // putting dependency here results in error:
            {
            "name": "chart.js",
            "path": "../node_modules/chart.js/dist",
            "main": "Chart.min.js"
            }
        ]
    },
    {
        "name": "app-bundle.js",
        "source":{ 
            "include":[ "[**/*.js]", "**/*.{css,html}" ],
            "exclude": [ "[**/ux/foo/*.js]", "**/ux/foo/*.{css,html}" ]
        }
    }      
]

Errors:
TypeError: h.load is not a function
ERROR [app-router] Error: Load timeout for modules: template-registry-entry!ux/foo/index.html,text!ux/foo/index.html

Any ideas? Thanks.

Arne Deruwe
@arnederuwe
@jamesond it doesn't!
Arne Deruwe
@arnederuwe
@wbrian-onlineed That should work, are you using CLI + require?
we did this exact setup in a project of ours, we didn't want kendo in our mobile app:
"bundles": [
            {
                "name": "common-bundle.js",
                "source": {
                    "include": ["**/*.{js,css,html}"],
                    "exclude": [
                        "**/app/**/*.{js,css,html}",
                        "**/admin/**/*.{js,css,html}"
                    ]
                }
            },
            {
                "name": "app-bundle.js",
                "source": ["**/app/**/*.{js,css,html}"]
            },
            {
                "name": "admin-bundle.js",
                "source": ["**/admin/**/*.{js,css,html}"],
                "dependencies": [
                    {
                        "name": "@progress/kendo-ui",
                        "path": "../node_modules/@progress/kendo-ui/",
                        "resources": ["js/kendo.grid.js"]
                    }
                ]
            },
            {
                "name": "vendor-bundle.js",
                "prepend": ["node_modules/requirejs/require.js"],
                "dependencies": [
                    "jquery",
                    {
                        "name": "bootstrap",
                        "path": "../node_modules/bootstrap/dist",
                        "main": "js/bootstrap.bundle.min",
                        "deps": ["jquery"],
                        "exports": "$",
                        "resources": ["css/bootstrap.css"]
                    },
                    "aurelia-bootstrapper",
                    "aurelia-loader-default",
                    "aurelia-pal-browser",
                    {
                        "name": "aurelia-testing",
                        "env": "dev"
                    },
                    "text"
                ]
            }
        ],
Brian
@wbrian-onlineed
@arnederuwe Yes i'm using regular CLI. It correctly produces the bundle but then starts to throw errors when app is loaded. Does it have to be included, required, or referenced differently in the app? I've tried everything to make this work. I'm hoping to produce an "admin bundle" just like you illustrate.
Jameson Strocsher
@jamesond
@arnederuwe bummer because my behavior is in production. I have online shopping portal and if a customer opens up multiple tabs with the site it will navigate the other one as well. Its a head scratcher for me thats for sure. I figure it has to be something with the router???
Brian
@wbrian-onlineed
@wbrian-onlineed FIXED. Note for posterity: Taking the nuclear option worked. I re-homed the entire Aurelia project, upgraded the CLI and all packages, and put it all back together. I hate doing that, it took all morning, but bundles are now working correctly. This appears to have been a bug with outdated CLI version.
Jameson Strocsher
@jamesond
@arnederuwe I am totally wrong it works as expected in production. Thank you for your time. I appreciate it.
Brian
@wbrian-onlineed
After upgrading to CLI 1.3.1, i'm noticing missing whitespace all throughout my templates:
<b>${1+2}</b> X in my .html compiles to <b>${1+2}</b>X(missing space after tag).
Anyone else notice this? Is there a bundler setting that is mangling this? Thanks for your help.
James Gosbell
@jamesg1
Hi all, I'm maintaining a large Aurelia code base over ~60 repos and we haven't spent much effort keeping the CLI up to date. The base repo/CLI was forked back in 2017, so our Aurelia version is out of date somewhat, mainly typescript/scss. I'd like to get upgraded to the latest Aurelia setup, would the best way to be to create a new cli app and move code over? Our aurelia.json and some build tasks have been modified
James Gosbell
@jamesg1
Is Aurelia backwards compatible?
James Gosbell
@jamesg1
Thanks :)
Brian
@wbrian-onlineed
@jamesg1 In my experience its easiest to just start a blank project and move your source code and config over manually. I recently did the same thing. Once you work out the kinks and have a working process, you can repeat it with the others. It doesn't sound like an fun way to spend your day, but it gets it done. The main things that change when upgrading the CLI are the dependencies and tasks. Once you figure out exactly what those changes are for a guinea pig project, you can copy the changes into your others repos.
Brian
@wbrian-onlineed
@wbrian-onlineed Answering my own question about whitespace: If you are having issues with collapsing whitespace, the culprit is htmlmin. You can fix by simply adding conservativeCollapse: true to aurelia_project/tasks/process_markup.js. See: http://perfectionkills.com/experimenting-with-html-minifier/#collapse_whitespace
VagyokC4
@VagyokC4
Question regarding custom-attributes. Are there any examples of extending and/or an attribute managing the IF binding? For example, I want to wrap some custom logic around the if binding by just using a new attribute that will programmatically add the IF binding to the element, and manage the bool variable bound to the if binding?
James Gosbell
@jamesg1
You can do if bindings to functions within your class model.
@wbrian-onlineed thanks will see how I go!
VagyokC4
@VagyokC4
Yeah, it's more that I want to extend the if binding and have my own version of an if binding, where my custom attribute is actually controlling the condition logic of the if binding, so that the end result is an html tag with only my custom attribute on it, no actual if bindings
plarner30
@plarner30
Is there a way to denote recognised query string parameters in aurelia router route definitions? At the moment just putting in a comment i.e this route will respond to ?foo parameter
Edwin
@thinkbig1979

Practical question:

The webpack.config.js code for exposing the Bluebird promise library in my (Aurelia) webapp is as follows:

module.exports = {
  module: {
    rules: [
      {
        test: /[\/\\]node_modules[\/\\]bluebird[\/\\].+\.js$/,
        loader: 'expose-loader?Promise'
      },
    ],
  },
};

After updating webpack expose-loader to v1.0. I get this error in the browser console:

Error: Module build failed (from
./node_modules/expose-loader/dist/cjs.js): ValidationError: Invalid
options object. Expose Loader has been initialized using an options
object that does not match the API schema.

options misses the property 'exposes'. Should be: non-empty string |
object { globalName, moduleLocalName?, override? } | [non-empty string
| object { globalName, moduleLocalName?, override? }, ...] (should not
have fewer than 1 item)

It's not obvious to me how to change the config at this point. Any suggestions? Many thanks!

bigopon
@bigopon
@thinkbig1979 have you resolves that issue?
If not, maybe try our new forum discord for faster response time /help? As we sre trying to migrate the community there
Edwin
@thinkbig1979
@bigopon Not resolved it yet. Will try the discord forum. Thanks :thumbsup:
DarkMikey
@DarkMikey

My project gets stuck while npm install on a jenkins build server in 3/4 times. Locally it builds fine. While I know this issue can be caused by endless reasons it is the only project that uses Aurelia CLI.
When I run npm install --verbose I don't see anything specific - just that it gets stuck at no specific timeout or package (package varies from build to build)

Are there any known issues with Aurelia CLI on build servers? Should it be installed globally?

DarkMikey
@DarkMikey

My project gets stuck while npm install on a jenkins build server in 3/4 times. Locally it builds fine. While I know this issue can be caused by endless reasons it is the only project that uses Aurelia CLI.
When I run npm install --verbose I don't see anything specific - just that it gets stuck at no specific timeout or package (package varies from build to build)

Are there any known issues with Aurelia CLI on build servers? Should it be installed globally?

It was a problem with node dependencies. I replaced npm i with npm ci which I discovered today and it works perfectly.