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

jsconfig.json path alias alternatives are not working #41206

Open
1 task done
Nefcanto opened this issue Oct 6, 2022 · 1 comment
Open
1 task done

jsconfig.json path alias alternatives are not working #41206

Nefcanto opened this issue Oct 6, 2022 · 1 comment
Labels
bug Issue was opened via the bug report template. stale The issue has not seen recent activity.

Comments

@Nefcanto
Copy link

Nefcanto commented Oct 6, 2022

Verify canary release

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

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022
Binaries:
  Node: 16.17.1
  npm: 8.19.2
  Yarn: 1.22.19
  pnpm: N/A
Relevant packages:
  next: 12.3.2-canary.20
  eslint-config-next: 12.3.1
  react: 18.2.0
  react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Use multiple paths for alias in jsconfig.json. It does not resolve the alternative paths.

Expected Behavior

It should consider all paths that are provided for any alias in jsconfig.json paths.

Link to reproduction

https://stackblitz.com/edit/nextjs-34trut?file=pages%2Findex.js

To Reproduce

1- Create a next app
2- Create two components
3- Create alias for them in jsconfig.json
4- Create one third alias, to include them both
5- Import using those aliases, the alias that contains both of them fails

@Nefcanto Nefcanto added the bug Issue was opened via the bug report template. label Oct 6, 2022
@vercel-release-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@vercel-release-bot vercel-release-bot added the stale The issue has not seen recent activity. label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

2 participants