Hello!
We are trying to use adf-utils in our TypeScript project. Importing any module fails. For example, if we try to import traverse, there is this error:
import { traverse } from '@atlaskit/adf-utils';
// import { traverse } from '@atlaskit/adf-utils/traverse.es';
// import { traverse } from '@atlaskit/adf-utils/traverse.js';
-----
↓
error TS2305: Module '"@atlaskit/adf-utils"' has no exported member 'traverse'.
1 import { traverse } from '@atlaskit/adf-utils';
~~~~~~~~
Found 1 error in src/index.ts:1
It seems I cannot attach a zip file here, so I created a GitHub repo to demonstrate the issue: GitHub - ipeychev/test-adf-utils
Here is how to reproduce the error:
- Download/clone the repo
- Install the dependencies
$ npm i - Execute the build process
$ npm run build
Note:
Tried with different variants of loading traverse, from here:
import { traverse } from '@atlaskit/adf-utils';
or
import { traverse } from '@atlaskit/adf-utils/traverse.es';
or
import { traverse } from '@atlaskit/adf-utils/traverse.js';
None of them worked.