The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is the documentation on Atlassian connect up-to-date?

neomatrix369
June 20, 2019

I'm getting started with creating a BitBucket app using `atlassian connect` and using this page https://developer.atlassian.com/cloud/bitbucket/getting-started/

Although the node.js app generated by `atlas-connect new -t bitbucket a-quick-addon` generates an app which my current version of node (v9.8.0) does not understand.

 

I get the below error when I run `AC_LOCAL_BASE_URL=http://xxxyzyyz.ngrok.io node app.js`:

```

import express from 'express';
^^^^^^

SyntaxError: Unexpected token import

```

 

when I pass the experimental flag and run: 

`AC_LOCAL_BASE_URL=https://xxxxx.ngrok.io node --experimental-modules app.js` I get the below error:

```

import express from 'express';
^^^^^^^

SyntaxError: Unexpected identifier

```

Finally, I replaced all `import xxx` with `const xxxx =` and I get somewhere further but with a lot of errors to fix manually.

 

Anyone else has had this and has solved it in a clean way? 

 

I have managed to make the app run but its still not smooth operation.

 

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
neomatrix369
June 24, 2019

I can share the fixed version of your example NodeJS app if you are interested.

Angelo Loria
Contributor
July 16, 2019

That would be appreciated, I'm also seeing this issue.

TAGS
AUG Leaders

Atlassian Community Events