Replies: 1 comment
-
It is really bad magic. const { whatWeNeed } = await import('./what-we-need.js'); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
https://www.npmjs.com/package/next?activeTab=code
I see that in the documentation you refer to
import localFont from 'next/font'
But there is no such file in the package, only some type support files.
Cannot find
font.js
,font/index.js
andfont/local/index.js
is empty.So it looks like this cannot work without magic.
Proposal
Just export localFont from the main file, or another package.
import { localFont } from 'next'
or
import localFont from '@next/font'
Beta Was this translation helpful? Give feedback.
All reactions