Hello,
I’m using the Post Login Action Template repository as reference to implement our own integration and I’m getting an error when linting the action because a dependency cannot be imported.
I can reproduce the error on the template repository with the Link External Identity Example
that has a dependency on Axios in configuration.json
:
...
"dependencies": [
{
"name": "axios",
"version": "0.27.2"
}
]
...
This is the error trace:
make lint
docker run --rm -t -v `pwd`/integration/:/data/integration/ auth0/marketplace-integration-tools npm run integration:lint
> marketplace-integration-templates@0.1.0 integration:lint
> eslint "./integration" --fix --no-error-on-unmatched-pattern && prettier --write "./integration" && markdownlint-cli2-fix "./integration/*.md"
/data/integration/integration.action.js
1:23 error Unable to resolve path to module 'axios' import/no-unresolved
/data/integration/integration.spec.js
4:27 error Unable to resolve path to module 'axios' import/no-unresolved
✖ 2 problems (2 errors, 0 warnings)
What do I need to do to make the lint succeed?
Thank you