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

Closed
1 task done
Nefcanto opened this issue Oct 6, 2022 · 3 comments
Closed
1 task done

jsconfig.json path alias alternatives are not working #41206

Nefcanto opened this issue Oct 6, 2022 · 3 comments
Labels
bug Issue was opened via the bug report template. locked 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
@nextjs-bot
Copy link
Collaborator

This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!

@nextjs-bot nextjs-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
Copy link
Contributor

github-actions bot commented Feb 4, 2025

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label Feb 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

3 participants