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

Bug: cannot find path for removal #124

Open
lgraziani2712 opened this issue Mar 2, 2019 · 0 comments
Open

Bug: cannot find path for removal #124

lgraziani2712 opened this issue Mar 2, 2019 · 0 comments

Comments

@lgraziani2712
Copy link

Hi! This is a really dope plugin!!

Today I faced the following issue: Cannot find the path for removal, please open issue with code example and the stack trace on Github: https://github.com/ember-cli/babel-plugin-filter-imports

It happened with the following code:

import VueTypes from "vue-types";

const props = {
  name: VueTypes.string.isRequired
};

export default {
  name: "App",
  props,
};

The following code works:

import VueTypes from "vue-types";

let props;

props = {
  name: VueTypes.string.isRequired
};

export default {
  name: "App",
  props,
};

Repro code: https://codesandbox.io/s/rrno774wq4

Thank you!

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