Open AlonsoK28 opened 2 years ago
I think issue can be related to this https://stackoverflow.com/a/67757374/7724301
I have tried import with these sentences but get the same error
import { WhatsappButton } from 'whatsapp-button.js/dist/wpp_js/whatsappButton';
const WhatsappButton = require('whatsapp-button.js/dist/wpp_js/whatsappButton').default;
const {WhatsappButton} = require('whatsapp-button.js');
import WhatsappButton from 'whatsapp-button.js/dist/wpp_js/whatsappButtonES6';
import WhatsappButton from 'whatsapp-button.js';
I´ve tried to import the library using webpack 4 like this:
But causes this error into browser console
import
reference https://developer.mozilla.org/es/docs/Web/JavaScript/Referencia/Sentencias/import