如何从next.js项目中的url导入模块

如何从next.js项目中的url导入模块,next.js,archilogic,Next.js,Archilogic,我正在尝试在我的下一个.js项目中使用ArchilogicEmbed模块 如果我这样导入: import ArchilogicEmbed, { PresentationMode } from 'https://code.archilogic.com/embed-api/v2.0.0/embed.module.js' 它给我一个错误,说模块未找到:无法解析'https://code.archilogic.com/embed-api/v2.0.0/embed.module.js“ 我正在努力在

我正在尝试在我的下一个.js项目中使用ArchilogicEmbed模块

如果我这样导入:

import ArchilogicEmbed, {
  PresentationMode
} from 'https://code.archilogic.com/embed-api/v2.0.0/embed.module.js'
它给我一个错误,说
模块未找到:无法解析'https://code.archilogic.com/embed-api/v2.0.0/embed.module.js“

我正在努力在next.js中实现这一点。 有人能帮我吗?
谢谢

这回答了你的问题吗?