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

Closed
1 task done
pksorensen opened this issue May 15, 2024 · 1 comment
Closed
1 task done

Resolve Alias not working same as webpack #8146

pksorensen opened this issue May 15, 2024 · 1 comment

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
@anthonyshew anthonyshew removed the needs: triage New issues get this label. Remove it after triage label Jun 5, 2024
@ForsakenHarmony
Copy link
Contributor

Please open an issue on the next.js repo
https://github.com/vercel/next.js/issues/new?assignees=&labels=template%3A+bug&projects=&template=1.bug_report.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants