-
Notifications
You must be signed in to change notification settings - Fork 28.5k
useAmp from Next.js breaks auto-imports for TypeScript #9436
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
Comments
WorkaroundUse |
Do not import from the dist directory. This has a 100% guarantee on breaking with every release. |
Seems like this is the same issue as #8979. So, removing this line should fix it: However, it seems that the same issue also applies for the following definition files:
|
@bartlangelaan feel free to open a PR to fix it! |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
If use
import { useAmp } from 'next/amp'
then auto-imports for TypeScript not working.To Reproduce
yarn
pages/index.tsx
useAmp
memo
Expected behavior
Auto-imports works.
Screencast
https://youtu.be/7Wbh7WgZNgg
System information
Additional context
Maybe linked: microsoft/TypeScript#29227
The text was updated successfully, but these errors were encountered: