aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependencies for array.prototype.filter and available-typed-arrays need updating

jeremy-holt opened this issue · comments

Are you sure you are using latest aurelia-cli?

I uses aurelia-cli with requirejs, bootstrap5, gulp-dart-sass. No problem at all.
array.prototype.filter shows v1.0.0, not the v0.1.1 as in your screenshot.

huocp@chunpengs-mbp ~/p/b5> npm ls array.prototype.filter
b5@0.1.0 /Users/huocp/playground/b5
└─┬ aurelia-cli@2.0.3
  └─┬ util@0.12.3
    └─┬ is-typed-array@1.1.5
      └─┬ available-typed-arrays@1.0.3
        └── array.prototype.filter@1.0.0

This is on my machine

PS C:\Visual Studio\AmbFactoryMonitor\AmbFactoryMonitorClient> npm ls array.prototype.filter
ambrcntradeclient@0.1.0 C:\Visual Studio\AmbFactoryMonitor\AmbFactoryMonitorClient
+-- array.prototype.filter@0.1.1
`-- aurelia-cli@2.0.3
  `-- util@0.12.3
    +-- is-typed-array@1.1.5
    | `-- available-typed-arrays@1.0.3
    |   `-- array.prototype.filter@1.0.0
    `-- which-typed-array@1.1.4
      `-- available-typed-arrays@1.0.3
        `-- array.prototype.filter@1.0.0

If I update array.prototype.filter to 1.0.0 I go back to the `not loaded ‘define-properties’ errors in almada.js.

image

If I run yarn upgrade - it upgrades available-typed-arrays to 1.0.3 and the app breaks again.

I just have to remember to manually upgrade the outdated dependencies, so it doesn't automatically upgrade available-typed-arrays

I still cannot reproduce it. Pls share a minimal repo to reproduce the error.

async triageQuestion(id) =>{
 respondSameDay()
 let response = await getResponseFromOP( { timeout : 4weeks } )
 if(!response) {
    closeQuestion(id,randomReason())
 }
}
ambrcntradeclient@0.1.0 C:\Visual Studio\AmbFactoryMonitor\AmbFactoryMonitorClient
+-- array.prototype.filter@0.1.1

Looks like the outdated array.prototype.filter is brought in by your ambrcntradeclient, not aurelia-cli.