Skip to content

Cannot read properties of undefined (reading byteLength) #51

@NullVoxPopuli

Description

@NullVoxPopuli
[!] (plugin babel) TypeError: <repo>/src/index.ts: Cannot read properties of undefined (reading 'byteLength')
src/index.ts
    at canSimplify (<.pnpm>/super-fast-md5@1.0.3/node_modules/super-fast-md5/dist/md5.cjs.js:97:12)
    at calculate (<.pnpm>/super-fast-md5@1.0.3/node_modules/super-fast-md5/dist/md5.cjs.js:119:8)
    at Object.md5 (<.pnpm>/super-fast-md5@1.0.3/node_modules/super-fast-md5/dist/md5.cjs.js:134:10)
    at uniqueIdentifier (<.pnpm>/glimmer-scoped-css@0.8.1/node_modules/glimmer-scoped-css/src/ast-transform.ts:22:10)
    at <.pnpm>/glimmer-scoped-css@0.8.1/node_modules/glimmer-scoped-css/src/ast-transform.ts:29:49
    at <.pnpm>/babel-plugin-ember-template-compilation@2.4.1/node_modules/babel-plugin-ember-template-compilation/src/node-main.ts:60:51

I suspect this can happen when there is no filename: https://github.com/cardstack/glimmer-scoped-css/blob/main/glimmer-scoped-css/src/ast-transform.ts#L22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions