标签: next.js
我试图弄清楚如何将传单库(https://leafletjs.com/)导入Next.js,以便创建自定义图标(https://leafletjs.com/reference-1.5.0.html#icon)。我尝试做const L = dynamic(import('leaflet'), {ssr: false});,但是由于出现错误L.Icon is not a function
const L = dynamic(import('leaflet'), {ssr: false});
L.Icon is not a function