Skip to content

TypeError: Cannot read properties of undefined (reading 'entries') #446

@riklaunim

Description

@riklaunim

Trying to run this codemod on ember 3.27 (inside docker/kubernetes setup) but I get an error:

npx ember-no-implicit-this-codemod http://localhost:4200 ./app 
/root/.npm/_npx/d0f35745626ae5ac/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:286
        throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'entries')
    at pptr://__puppeteer_evaluation_script__:9:50
    at ExecutionContext._ExecutionContext_evaluate (/root/.npm/_npx/d0f35745626ae5ac/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:286:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ExecutionContext.evaluate (/root/.npm/_npx/d0f35745626ae5ac/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:117:16)
    at async gatherTelemetry (/root/.npm/_npx/d0f35745626ae5ac/node_modules/ember-codemods-telemetry-helpers/lib/gather/gather-telemetry.js:29:21)
    at async /root/.npm/_npx/d0f35745626ae5ac/node_modules/ember-no-implicit-this-codemod/bin/cli.js:15:3

Node.js v22.5.1

Managed to get the same locally on Linux. I've managed to make it run... by commenting out that throw new Error in ExecutionContext.js at like 286 ;)

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