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

node_modules are ignored #493

Open
GCorbel opened this issue Apr 6, 2018 · 4 comments
Open

node_modules are ignored #493

GCorbel opened this issue Apr 6, 2018 · 4 comments

Comments

@GCorbel
Copy link

GCorbel commented Apr 6, 2018

I'm working on an ember project and I installed the addon ember-simple-auth. I create the app/authenticators/application.js with this :

export default Devise.extend({
});

Devise should be resolved asimport Devise from 'ember-simple-auth/authenticators/devise'; but it gives No JS module to import for Devise`.

The file is located in ./node_modules/ember-simple-auth/addon/authenticators/devise.js and the addon is a "devDependency".

It works if I create an app somewhere in my app with :

const Devise = {};
export { Devise };

Here is my .importjs.js file :

module.exports = {
  excludes: [],
  importDevDependencies: true
}

There is nothing in logs.

Is there a bug or did I miss something?

@coagmano
Copy link
Contributor

coagmano commented Apr 6, 2018

I've been having similar issues, and haven't had the time to debug it properly

@trotzig
Copy link
Collaborator

trotzig commented Apr 6, 2018

Right now, only the top level exports are found for package dependencies. We've discussed adding support for finding exports within subdirectories of package dependencies, but no code has yet been written in this area. See #344

@GCorbel
Copy link
Author

GCorbel commented Sep 21, 2018

Any updates on this issue?

@trotzig
Copy link
Collaborator

trotzig commented Sep 21, 2018

@GCorbel nothing yet. If you wanted to get involved, #344 is a good place to discuss ways to implement this.

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

3 participants