服务端渲染antd报错 #30107
Unanswered
gzz361405944
asked this question in
Q&A
服务端渲染antd报错
#30107
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
服务器端渲染antd报错
import * as React from 'react';
^^^^^^
SyntaxError: Unexpected token import
但是去掉 .babelrc里面的
["import", [{"libraryName": "antd", "libraryDirectory": "es", "style": "css" }]]
就好了
Beta Was this translation helpful? Give feedback.
All reactions