Git Product home page Git Product logo

Comments (10)

MrRefactoring avatar MrRefactoring commented on July 23, 2024

Hi, @iuaj7, can you create a template repo with this error?

from jira-connector.

iuaj7 avatar iuaj7 commented on July 23, 2024

@MrRefactoring I uploaded the files to "iuaj7/HelloSharepointJira"
without the node_modules directory

from jira-connector.

MrRefactoring avatar MrRefactoring commented on July 23, 2024

Sorry, but there are no files. Check it one more time :)

from jira-connector.

MrRefactoring avatar MrRefactoring commented on July 23, 2024

Try import * as JiraClient from 'jira-connector';. Let me know if this helps.

from jira-connector.

iuaj7 avatar iuaj7 commented on July 23, 2024

With the modified import statement the "jira = new JiraClient(..." gives me the following error message:

[ts] Cannot use 'new' with an expression whose type lacks a call or construct signature.

from jira-connector.

iuaj7 avatar iuaj7 commented on July 23, 2024

Found something. Sharepoint Developer Framework SPFx uses an older Typescript version
"[10:44:26] [typescript] TypeScript version: 2.2.2". Seems that SPFx has some internal dependencies and cannot switch to the latest tsc version.

from jira-connector.

MrRefactoring avatar MrRefactoring commented on July 23, 2024

Found something. Sharepoint Developer Framework SPFx uses an older Typescript version
"[10:44:26] [typescript] TypeScript version: 2.2.2". Seems that SPFx has some internal dependencies and cannot switch to the latest tsc version.

Good job @iuaj7. Can you give me PR to fix it?

from jira-connector.

iuaj7 avatar iuaj7 commented on July 23, 2024

@MrRefactoring Sorry, but I do not have a solution for the problem. I just identified a possible reason why it is not working. It seems to be a version conflict with the Sharepoint "package.json" dependencies.
The problem is similar to using "jquery" with SPFx:
"https://thechriskent.com/tag/typescript/"

from jira-connector.

saschagnthr avatar saschagnthr commented on July 23, 2024

Any updates on this? I ran into a similar error and can´t use the JiraConnector in my SPFx project. Here´s my error message:

Error - [webpack] 'dist': ./node_modules/jira-connector/api/auth.js Module not found: Error: Can't resolve 'fs' in 'C:/GIT/MyProject/SPFx/MyWebPart/node_modules/jira-connector/api' resolve 'fs' in 'C:/GIT/MyProject/SPFx/MyWebPart/node_modules/jira-connector/api'

from jira-connector.

MrRefactoring avatar MrRefactoring commented on July 23, 2024

Any updates on this? I ran into a similar error and can´t use the JiraConnector in my SPFx project. Here´s my error message:

Error - [webpack] 'dist': ./node_modules/jira-connector/api/auth.js Module not found: Error: Can't resolve 'fs' in 'C:/GIT/MyProject/SPFx/MyWebPart/node_modules/jira-connector/api' resolve 'fs' in 'C:/GIT/MyProject/SPFx/MyWebPart/node_modules/jira-connector/api'

It seems to me that if you want to use this extension to work on your site, then you cannot do it. I would look towards jira.js

from jira-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.