Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smooch__WEBPACK_IMPORTED_MODULE_1___default(...).... is not a function #709

Open
FeLauton opened this issue Jul 9, 2024 · 6 comments
Open

Comments

@FeLauton
Copy link

FeLauton commented Jul 9, 2024

bug report

smooch__WEBPACK_IMPORTED_MODULE_1___default(...).init is not a function
TypeError: smooch__WEBPACK_IMPORTED_MODULE_1___default(...).init is not a function
at initializeSmooch (http://localhost:3000/static/js/bundle.js:111696:64)
at SmoochWebChat (http://localhost:3000/static/js/bundle.js:111709:11)
at RouterWrapper (http://localhost:3000/static/js/bundle.js:110374:115)
at renderWithHooks (http://localhost:3000/static/js/bundle.js:275914:22)
at mountIndeterminateComponent (http://localhost:3000/static/js/bundle.js:279885:17)
at beginWork (http://localhost:3000/static/js/bundle.js:281188:20)
at beginWork$1 (http://localhost:3000/static/js/bundle.js:286147:18)
at performUnitOfWork (http://localhost:3000/static/js/bundle.js:285417:16)
at workLoopSync (http://localhost:3000/static/js/bundle.js:285340:9)
at renderRootSync (http://localhost:3000/static/js/bundle.js:285313:11)

  • Delivery method: [ npm ]
  • Version ( 5.6.2 ):
  • Browser: [ all ]
  • OS: [ Windows 11 ]
@kaiwa
Copy link

kaiwa commented Jul 11, 2024

👍

previous versions are still working, I tried 5.6.0 ...

@klimeryk
Copy link

Same here, trying the most basic usage of the widget and I was scratching my head what I was doing wrong. Thanks for reporting it and restoring my sanity 😅

For reference, I was just trying the most basic setup:

import Smooch from 'smooch';

...
Smooch.init( { integrationId: '...' } );

Forcing version 5.6.0 indeed makes it work as expected - thanks for the hint, @kaiwa! 🙇

klimeryk added a commit to Automattic/wp-calypso that referenced this issue Jul 13, 2024
@LucasBourgeois
Copy link

It seems that it's because since 5.6.2, there is no longer a module.exports= in the lib/index.js..

@kytta
Copy link

kytta commented Nov 28, 2024

Yep, the export is empty:

import Smooch from 'smooch';

// I've also tried
// import * as Smooch from 'smooch';

console.log(Smooch)

logs an empty object ({})

@kytta
Copy link

kytta commented Jan 21, 2025

Let me get impertinent and tag @DataWearsAHood and @mspensieri, as they seem to have been the last people acting on issues here. Could you or your colleagues look into this? It makes new versions of Smooch unusable with Node :(

@mspensieri
Copy link

Hello 👋 thanks for the ping . As you've noticed, we don't actively monitor this repo for bug reports. In the future you'd get more prompt support by using the support widget in our help center https://support.zendesk.com/hc/en-us/ or from Admin Center > Get More Help.

For now I've forwarded this report to the team that maintains the web messenger, and they've filed a bug for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants