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

Resolve Alias not working same as webpack #8146

Open
1 task done
pksorensen opened this issue May 15, 2024 · 0 comments
Open
1 task done

Resolve Alias not working same as webpack #8146

pksorensen opened this issue May 15, 2024 · 0 comments
Labels
kind: bug Something isn't working linear: turbopack needs: triage New issues get this label. Remove it after triage owned-by: turbopack

Comments

@pksorensen
Copy link

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

not public

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Windows

Which canary version will you have in your reproduction?

the one that comes with nextjs 14.2.3

Describe the Bug

In webpack we define alias for webpack

 config.resolve.alias['@eavfw/utils'] = path.resolve(__dirname, '../../node_modules/@eavfw/utils');

the module is there, and i suspect this being related to that the package is linked in with npm (basically a symlink)

image

but building causes nextjs app with turbo not to resolve it.

image

Expected Behavior

We expect it to load packages even if linked with npm like webpack is doing :)

To Reproduce

use npm link and try alias to the module

Additional context

No response

@pksorensen pksorensen added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working linear: turbopack needs: triage New issues get this label. Remove it after triage owned-by: turbopack
Projects
None yet
Development

No branches or pull requests

3 participants