Javascript TypeError:(0,_typography.scale)不是函数

Javascript TypeError:(0,_typography.scale)不是函数,javascript,reactjs,typeerror,next,typography,Javascript,Reactjs,Typeerror,Next,Typography,我的项目使用Next.js和排版 我收到错误TypeError:(0,_typography.scale)不是一个函数,不幸的是,我不明白为什么 import Link from 'next/link' import typography, { rhythm, scale } from '../utils/typography'; import colors from '../utils/colors'; const HeaderLink = { ...scale(-1/4), mar

我的项目使用Next.js和排版

我收到错误
TypeError:(0,_typography.scale)不是一个函数,不幸的是,我不明白为什么

import Link from 'next/link'
import typography, { rhythm, scale } from '../utils/typography';
import colors from '../utils/colors';

const HeaderLink = {
  ...scale(-1/4),
  marginRight: rhythm(1),
  color: colors.gunsmoke
}

export default () => (
  <header>
      <a style={HeaderLink} href="/#top">Home</a>
  </header>
)
从“下一个/链接”导入链接
从“../utils/typography”导入排版,{节奏,比例};
从“../utils/colors”导入颜色;
const HeaderLink={
…比例(-1/4),
边缘光:节奏(1),
颜色:颜色,烟雾
}
导出默认值()=>(
)