Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
neomatrix369 June 24, 2019

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

Angelo Loria July 16, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events