Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
riklaunim opened this issue Aug 6, 2024 · 0 comments
Open

Comments

@riklaunim
Copy link

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant