如何解决Vercel 对每个 .tsx 文件给出语法错误
每个 tsx 文件都会出现此语法错误
yarn build
Failed to compile.
12:48:34.095 src/components/AddressInputPanel/index.tsx
12:48:34.096 Syntax error: Unexpected token,expected "," (38:35)
12:48:34.096 36 | `
12:48:34.096 37 |
12:48:34.096 > 38 | const Input = styled.input<{ error?: boolean }>`
12:48:34.096 | ^
12:48:34.097 39 | font-size: 1.25rem;
12:48:34.097 40 | outline: none;
12:48:34.097 41 | border: none;
12:48:34.097 src/components/Column/index.tsx
12:48:34.097 Syntax error: Unexpected token," (14:6)
12:48:34.097 12 |
12:48:34.097 13 | export const AutoColumn = styled.div<{
12:48:34.097 > 14 | gap?: 'sm' | 'md' | 'lg' | string
12:48:34.097 | ^
12:48:34.097 15 | justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between'
12:48:34.098 16 | }>`
12:48:34.098 17 | display: grid;
12:48:34.098 src/components/ConnectWalletButton/index.tsx
12:48:34.098 Syntax error: Unexpected token," (18:85)
你能指点我一下吗?我不知道为什么我会收到此错误
提前致谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。