jspm / generator

JSPM Import Map Generator
Apache License 2.0
166 stars 21 forks source link

CI error - flake or actual bug? #217

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Getting -

error: Uncaught ReferenceError: Cannot access 'default' before initialization
    at https://ga.jspm.io/npm:@babel/helper-create-class-features-plugin@7.21.0/lib/index.js:1:1056
node:internal/errors:857
  const err = new Error(message);
              ^

Error: Command failed: deno run --reload --unstable --no-check --allow-all --import-map=/tmp/map.json /tmp/app.js
    at __node_internal_genericNodeError (node:internal/errors:857:15)
    at checkExecSyncError (node:child_process:861:11)
    at execSync (node:child_process:932:15)
    at denoExec (file:///home/runner/work/generator/generator/test/deno.js:18:3)
    at file:///home/runner/work/generator/generator/test/deno/self.test.js:24:7 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 3021,
  stdout: null,
  stderr: null
}
Bubblyworld commented 1 year ago

It seems like a bug in @babel/helper-create-class-features-plugin@7.21.0, which was published yesterday. I think it's pulled in as a transitive dependency in the test - not sure what we can do about it until it gets patched, other than change/disable the test.

Bubblyworld commented 1 year ago

Scrap that, as discussed yesterday it seems to be a CDN build error. Currently no matter what version I pin it to with resolutions there's still a failure.

Bubblyworld commented 1 year ago

On the other hand, if you look at the online generator's source it's currently linked to 7.19.0 and seems to be working:

Screenshot 2023-02-23 at 13 38 20