正如标题所说,我不能让hellosign-embedded
与next
一起工作
我的应用程序将通过CDN提供,所以如果它不能与SSR一起工作,我就不会吃蛋糕
const HelloSign: any = dynamic(
(): any => {
return import("hellosign-embedded")
},
{ ssr: false }
)
export default function Home() {
const client =
typeof window !== "undefined"
? new HelloSign({
allowCancel: false,
clientId: "HELLO SIGN CLIENT ID", // DEV HelloSign Client ID
skipDomainVerification: true,
})
: null
return null
}
我一直有TypeError: HelloSign is not a constructor
分
我还在GitHub上创建了this issue个,并提供了更多信息