Closed learneradarsh closed 1 year ago
Hi! Thank you for your question. Can you send me a minimal project in which I can reproduce this?
Actually, I wanted to use it with nodejs backend API from where I can simply fetch a list of issues specific to project
Wanted to ask few more things: Is it also possible to use this library directly with frontend frameworks like Angular?
This was planned to be used directly with frontend frameworks, but I have not tested it purposefully and would be happy to add this functionality or consider your suggestions
Actually, with Angular I have tried it is not working I have shared my package.json above in a comment. I have tried with express now it is working.
I will try run it with angular
Today I had the same problem, any news for the bug correction.
I'm trying to using the library on a NuxtJs project :)
So I'm prepared a branch with webpack but have not fully designed it (how it will be presented in lib interface): https://github.com/MrRefactoring/jira.js/tree/feature/browser-build
edited: I'm not sure I have time for fixing it soon
Warning: /home/learner/LearningSpace/uxtool/src/app/dashboard/create-user-stories/create-user-stories.component.ts depends on 'jira.js'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
Error: ./node_modules/windows-release/node_modules/cross-spawn/index.js Module not found: Error: Can't resolve 'child_process' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/cross-spawn'
Error: ./node_modules/windows-release/node_modules/execa/index.js Module not found: Error: Can't resolve 'child_process' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/execa'
Error: ./node_modules/atlassian-jwt/dist/lib/jwt.js Module not found: Error: Can't resolve 'crypto' in '/home/learner/LearningSpace/uxtool/node_modules/atlassian-jwt/dist/lib'
Error: ./node_modules/oauth/lib/oauth2.js Module not found: Error: Can't resolve 'crypto' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/oauth/lib/oauth.js Module not found: Error: Can't resolve 'crypto' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/isexe/mode.js Module not found: Error: Can't resolve 'fs' in '/home/learner/LearningSpace/uxtool/node_modules/isexe'
Error: ./node_modules/isexe/windows.js Module not found: Error: Can't resolve 'fs' in '/home/learner/LearningSpace/uxtool/node_modules/isexe'
Error: ./node_modules/isexe/index.js Module not found: Error: Can't resolve 'fs' in '/home/learner/LearningSpace/uxtool/node_modules/isexe'
Error: ./node_modules/windows-release/node_modules/cross-spawn/lib/util/readShebang.js Module not found: Error: Can't resolve 'fs' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/cross-spawn/lib/util'
Error: ./node_modules/oauth/lib/oauth2.js Module not found: Error: Can't resolve 'http' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/oauth/lib/oauth.js Module not found: Error: Can't resolve 'http' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/oauth/lib/oauth2.js Module not found: Error: Can't resolve 'https' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/oauth/lib/oauth.js Module not found: Error: Can't resolve 'https' in '/home/learner/LearningSpace/uxtool/node_modules/oauth/lib'
Error: ./node_modules/human-signals/build/src/main.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/human-signals/build/src'
Error: ./node_modules/human-signals/build/src/signals.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/human-signals/build/src'
Error: ./node_modules/macos-release/index.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/macos-release'
Error: ./node_modules/os-name/index.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/os-name'
Error: ./node_modules/windows-release/index.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release'
Error: ./node_modules/windows-release/node_modules/execa/lib/kill.js Module not found: Error: Can't resolve 'os' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/execa/lib'
Error: ./node_modules/windows-release/node_modules/cross-spawn/lib/parse.js Module not found: Error: Can't resolve 'path' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/cross-spawn/lib'
Error: ./node_modules/windows-release/node_modules/cross-spawn/lib/util/resolveCommand.js Module not found: Error: Can't resolve 'path' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/cross-spawn/lib/util'
Error: ./node_modules/windows-release/node_modules/execa/index.js Module not found: Error: Can't resolve 'path' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/execa'
Error: ./node_modules/windows-release/node_modules/npm-run-path/index.js Module not found: Error: Can't resolve 'path' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/npm-run-path'
Error: ./node_modules/windows-release/node_modules/which/which.js Module not found: Error: Can't resolve 'path' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/which'
Error: ./node_modules/merge-stream/index.js Module not found: Error: Can't resolve 'stream' in '/home/learner/LearningSpace/uxtool/node_modules/merge-stream'
Error: ./node_modules/windows-release/node_modules/get-stream/buffer-stream.js Module not found: Error: Can't resolve 'stream' in '/home/learner/LearningSpace/uxtool/node_modules/windows-release/node_modules/get-stream'
My Package.json
{ "name": "uxtool", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/animations": "~11.0.4", "@angular/cdk": "^11.2.3", "@angular/common": "~11.0.4", "@angular/compiler": "~11.0.4", "@angular/core": "~11.0.4", "@angular/forms": "~11.0.4", "@angular/material": "^11.2.3", "@angular/platform-browser": "~11.0.4", "@angular/platform-browser-dynamic": "~11.0.4", "@angular/router": "~11.0.4", "@dabeng/ng-orgchart": "^1.0.2", "bootstrap": "^5.0.2", "jira.js": "^2.5.2", "node": "^10.0.0", "nodejs": "^0.0.0", "orgchart": "^3.1.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", "uuid": "^8.3.1", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1100.4", "@angular/cli": "~11.0.4", "@angular/compiler-cli": "~11.0.4", "@types/jasmine": "~3.6.0", "@types/node": "^12.11.1", "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.1.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~4.0.2" } }