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

Pod structure error #79

Closed
artemgurzhii opened this issue Feb 12, 2019 · 2 comments
Closed

Pod structure error #79

artemgurzhii opened this issue Feb 12, 2019 · 2 comments

Comments

@artemgurzhii
Copy link

artemgurzhii commented Feb 12, 2019

I guess ember-es6-class-codemod is trying to name classes corresponding to their file names.

I'm using pods and I'm having following structure

  • app/pods/authenticated
    • controller.js
    • route.js
    • template.hbs

File route.js was transformed into this

Result:

import Route from '@ember/routing/route';

export default class Route extends Route {
  // ...
}

So I received error Route is already defined

Expected:

import Route from '@ember/routing/route';

export default class AuthenticatedRoute extends Route {
  // ...
}
@pzuraq
Copy link
Collaborator

pzuraq commented Feb 12, 2019

This is related to #52 as well, we need to get the test suite to a place where we can merge that PR

@artemgurzhii
Copy link
Author

@pzuraq Thanks and sorry for disturbing.

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

2 participants