javascript - TypeError: (0 , _typography.scale) is not a function -
i use project next.js , typography.
i receive error typeerror: (0, _typography.scale) not function
and, unfortunately, don't understand why.
import link 'next/link' import typography, { rhythm, scale } '../utils/typography'; import colors '../utils/colors'; const headerlink = { ...scale(-1/4), marginright: rhythm(1), color: colors.gunsmoke } export default () => ( <header> <a style={headerlink} href="/#top">home</a> </header> )
Comments
Post a Comment