I removed the entire project and started over from the git clone command. I copied in my credentials.json and my package.json with the fix. I ran npm install. npm start fails with the same error. Is there a type-o in my package.json?
It seems @nmansilla temporary fix worked for my installation.
@SteveB I deleted /node_modules, package-lock.json, and edited package.json.
However my package.json looks different from yours:
{
"name": "my-app",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node -r esm app.js",
"lint": "eslint app.js routes"
},
"dependencies": {
"atlassian-connect-express": "^3.5.2",
"body-parser": "^1.19.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.4",
"errorhandler": "^1.5.1",
"esm": "^3.2.22",
"express": "^4.16.4",
"express-hbs": "^2.1.2",
"morgan": "^1.9.1",
"sequelize": "^5.21.1",
"sqlite3": "^4.1.0",
"urijs": "1.19.1"
},
"devDependencies": {
"eslint": "^5.16.0",
"ngrok": "^2.3.0"
}
}
So the versions of a couple of packages are different.
Nah I tried the same thing and am still having the same problem as well. Also tried copying marcās package.json just in case and got:
C:\Users\Torfinn Olsen\confluence-helloworld-addon\app.js
at Object. (C:\Users\Torfinn Olsen\confluence-helloworld-addon\app.js:16:14)
at Generator.next () {
code: āMODULE_NOT_FOUNDā,
requireStack: [ āC:\Users\Torfinn Olsen\confluence-helloworld-addon\app.jsā ]
@TorfinnOlsen - did you run npm install after copying Marcās package.json?
Yeah I deletedthe node modules folder -> deleted package-lock.json -> edited the package.json to match marcās -> and ran npm install.
found this comment from Aug, 06 2018
Seems like people been having this particular issue for a while.
How about this, @TorfinnOlsen ā just update your config.json file so that the hostname includes https://. Then try running itā¦
Took Marcās suggestion and it works now. Moving on to Lesson 1⦠lol.
If we get a library update, will there be an update to this thread on release? Is there a way to track when this issue is resolved in the base library?
Hi @nmansilla ,
Today I was testing a new addon using atlas-connect ( Bitbucket ).
This command installs a package.json without the
"urijs": "1.19.1"
dependency fixed. Is there anything I can do to move this forward?
@marc just add āhttps://ā to your hostname in the credentials.json file and you should be all set.
Hi @nmansilla , I do know how to fix this. My intention is to fix it for other developers, such that when they follow the tutorial https://developer.atlassian.com/cloud/confluence/lesson-1-the-source-awakens/ , they get a working addon.
So it might be enough to change the documentation for credentials.json here?
- Getting started with Connect
- https://developer.atlassian.com/cloud/confluence/lesson-1-the-source-awakens/
- Creating blueprints with Confluence Connect
Is there an action I can take to help?
Hi @marc,
Thank you so much for this initiative
. We are working on updating these changes on our docs and they will be live soon.
Cheers,
Anmol