假如报的是antd-mobile的错误 ,需要在next.config.js中配置: const withTM = require('next-transpile-modules')([ 'antd-mobile']);