Issue with importing a node package in the Zendesk custom app

2 Comentarios

  • Sumitha Sudevan

    I have tried the below code too but no luck. Require is not recognized at all.

    const MeechumUser = require('test-package');
  • Tipene Hughes
    Zendesk Developer Advocacy
    Hey Sumitha Sudevan,
    Thanks for reaching out! To start with, here's a couple things you can try: 
    • Add type="module" to your package.json file. Docs
    • Try using the Browserify package which allows you to use the require method, client-side.
    Let me know if you continue having issues after trying these two work arounds. If so, we can pull this into a ticket so I can look a bit more into your code. 

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk