【发布时间】:2020-10-03 00:08:04
【问题描述】:
你好到目前为止,我的一个组件中有这段代码
export default App;
return (
<Section id="home">
<Overlay
style={{height: `${this.state.width > 500 ? this.state.height : 350}px`}}>
<HeadingBox className="parallax-hero-item animate">
<SubHeading className="parallax-hero-item">Hello, I'm</SubHeading>
<Heading className="parallax-hero-item">
<Glitch text="Julius Oh" />
</Heading>
<Type className="parallax-hero-item">
<Typewriter
options={{
strings: [
'Full Stack Developer',
'Problem Solver',
'Programming Enthusiast',
],
autoStart: true,
loop: true,
}}
/>
</Type>
<Resume
rel="noopener noreferrer"
href={withPrefix('./resume.pdf')}
target="_blank">
Download Resume
</Resume>
</HeadingBox>
{this.shapes()}
</Overlay>
</Section>
);
但是,我收到了来自 Gatsby 的错误 /resume.pdf 上还没有页面
在您的站点目录 src/pages/resume.pdf.js 中创建一个 React.js 组件,此页面将自动刷新以显示您创建的新页面组件。
【问题讨论】: