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

Next.js docs: Update syntax for jiti import due to deprecation #321

Open
wants to merge 3 commits into
base: dep-bumps
Choose a base branch
from

Conversation

mbifulco
Copy link
Contributor

@mbifulco mbifulco commented Feb 16, 2025

jiti has deprecated the syntax used in the docs for next.js here - I came across this on my own site while upgrading t3-env:

image

Guidance from Jiti's repo: https://github.com/unjs/jiti/blob/c7cfeedbd2326976857bcd62726d73401d25dc03/lib/types.d.ts#L175-L176

  /** @deprecated Prefer `await jiti.import()` for better compatibility. */
  (id: string): any;

I'm using await syntax currently and it seems to be working.

Copy link

vercel bot commented Feb 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
t3-env ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 11:38am

Copy link

vercel bot commented Feb 16, 2025

@mbifulco is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

@mbifulco
Copy link
Contributor Author

Just merged a small change to my branch. Thannks @jacksonblankenship for catching my mistake!

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

Successfully merging this pull request may close these issues.

2 participants