The issue can be fixed by transpiling @pusher/push-notifications-web
module - which is exported as ESM - using next-transpile-modules
in Next.js config:
// next.config.js
const withTM = require('next-transpile-modules')(['@pusher/push-notifications-web']);
module.exports = withTM({/* custom config */});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…