Open Yelinz opened 4 years ago
Go the exact same error, tried with release 4.1.0
and 3.1.2
.
@Yelinz can you show us the command you entered?
As i said any command, so whatever is in the README and any variation of it.
e.g. npx ember-angle-brackets-codemod http://localhost:4200 ./path/of/files/ or ./some**/*glob.hbs
I'm seeing the same issue -- if I run the following
npx ember-angle-brackets-codemod --telemetry=http://localhost:9999 ./addon
(Our app runs on port 9999
, hence the slight different from the normal usage there)
I get the same error about entries
being accessed on undefined
.
My guess is that the issue is here:
And that, for some reason, window.require
is not yet defined at the point that that line is being evaluated.
I was getting this as well and found it was due to the Puppeteer version using Chrome 78.0 and our build target was only to the last 1 Chrome version which made our build incompatible with Chrome 78.0.
Huh, good call-out there @rjschie! I bet that could be what the issue for me is, too -- our app is set up to just use the last 1 chrome version in development mode.
Unfortunately we're still seeing the issue even with two different "fixes" attempted
browsers
list for the development build to Chrome >= 78
ember-codemods-telemetry-helpers
to pull from the master
on GitHub, where an update to Puppeteer has landed thanks to @rjschie (the update hasn't actually been released to npm yet)False alarm; an issue in our app's configuration was the reason it was breaking.
With the above steps applied, the codemod worked for me! 🎉
When i run any command this error comes up