Open Filoteemo opened 1 year ago
Hi @Filoteemo. Sorry you're having issues. I'm happy to help!
When you are running the codemod, are you running a server and pointing the codemod to it, e.g.:
npx ember-native-class-codemod http://localhost:4200/path/to/server [OPTIONS] path/of/files/ or/some**/*glob.js
Thanks @gitKrystan. Yes correct. And as from the cli output it processes the file but doesn't modify it.
@Filoteemo Can you try the latest version of this codemod, released yesterday. It's very unlikely that it will resolve your issue, but I did some work around error handling that might surface more useful information.
At this point, I suspect some issue w/ your setup + ember-codemods-telemetry-helpers, which unfortunately I have no experience debugging.
Thanks! I will give it a try.
Working on a app running Ember v 3.15. When trying to mod any files to native class I get 200 in response but it won't modify any of the files specified. This is the cli output:![image](https://user-images.githubusercontent.com/64730885/234209260-e4b3d621-0b33-4ec9-a20e-e1f96b6d4179.png)
And the codemods logfile says "Could not find runtime data NO_RUNTIME_DATA".
Example of file that is being specified in the path of the command:
`import { computed } from '@ember/object' import Component from 'eea/component'
export default Component.extend({ classNames: ['go-card'], classNameBindings: ['hasImage', 'hasAction'], tagName: 'button', title: '', subtitle: '', icon: 'arrow-right', hasImage: computed('image', function () { return this.get('image') ? 'has-image' : '' }), hasAction: computed('action', function () { return this.get('action') ? 'has-action' : '' }), click: function () { if (this.hasAction) this.cardAction() }, })`