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.
I can share the fixed version of your example NodeJS app if you are interested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.