Skip to content

Can't resolve import #13

@artursmirnov

Description

@artursmirnov

I have this awesome plugin working perfectly in my neovim setup on Ubuntu. Only one issue bothers me a lot.

I have an import defined like this:

import SomeMixin from 'myApp/mixins/shared/some-mixin';

in package.json I have

{
  "name": "myApp"
}

and app/mixins/shared/some-mixin.js exists and contains

import Ember from 'ember';
export default Ember.Mixin.create({});

The issue is when I place a cursor to myApp/mixins/shared/some-mixin and press gf it prints an error:

E447: Can't find file "myApp/mixins/shared/some-mixin" in path

Although it works as expected with relative imports defined like this:

import SomeMixin from '../../mixins/shared/some-mixin';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions