MrRefactoring / jira.js

A JavaScript/TypeScript wrapper for the JIRA Cloud, Service Desk and Agile REST API
https://mrrefactoring.github.io/jira.js/
MIT License
349 stars 46 forks source link

axios import error (Cannot read properties of undefined (reading 'create')) #278

Closed schealex closed 10 months ago

schealex commented 10 months ago

Hi there,

i'm trying to use jira.js for the first time and i'm having trouble getting it to work within a react / electron project. Seems like the BaseClient which imports axios is unable to import it as it's undefined there. I have axios 1.4.0 same as in jira.js installed. Tried a couple different versions but that did not help.

image image

And idea how to solve this?

regards Alex

schealex commented 10 months ago

found a workaround, guess this is nothing jira.js has to do with but for anyone interested: https://github.com/facebook/create-react-app/issues/11889#issuecomment-1114928008