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

Aliases to a node module are mapped as relative to base path #53

Open
NickBolles opened this issue Jun 1, 2022 · 1 comment
Open

Aliases to a node module are mapped as relative to base path #53

NickBolles opened this issue Jun 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@NickBolles
Copy link

tsconfig.json

	"baseUrl": "./src/js/"
	...
      "handlebars": ["handlebars/runtime"],

output of hq.get('webpack')

  handlebars: '/Users/nick.bolles/Code/repo/src/js/handlebars/runtime',

this should stay as

  handlebars: 'handlebars/runtime',

it looks like setting the value to "handlebars": ["../../node_modules/handlebars/runtime"], in the tsconfig works, but that's not ideal.

@davestewart
Copy link
Owner

Hi NIck,

In essence, you're saying that Alias is not using the correct Node path resolution mechanism to resolve packages.

Sorry about this, I will look into it!

@davestewart davestewart added the bug Something isn't working label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants