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

Wrong output path with similar module name #3

Closed
filenwind opened this issue Jun 21, 2018 · 1 comment
Closed

Wrong output path with similar module name #3

filenwind opened this issue Jun 21, 2018 · 1 comment

Comments

@filenwind
Copy link

import similar module will cause wrong output path

This is example repository.

npm run build:ttsc
npm run start

tsconfig:

{
  "compilerOptions": {
    "paths": {
      "app/*": ["src/app/*"],
      "app": ["src/app/index"]
    },
  }
}

code:

import app from 'app';
import appRootPath from 'app-root-path';
import application from 'application';

console.log('app', app);
console.log('appRootPath', appRootPath);
console.log('application', application);

After compiler, appRootPath, application will import from app path.

@zerkalica
Copy link
Owner

fix works for 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

2 participants