hello,
I'm hoping somebody could help me figure out what this error means.
+ npm run lint
> frontend@1.16.1 lint /opt/atlassian/pipelines/agent/build
> eslint --ext .js,.vue --ignore-path .gitignore src
Oops! Something went wrong! :(
ESLint: 8.57.1
/opt/atlassian/pipelines/agent/build/node_modules/@eslint-community/eslint-utils/index.js:274
end = getOpeningParenOfParams(node, sourceCode)?.loc.start;
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/opt/atlassian/pipelines/agent/build/node_modules/eslint/lib/source-code/source-code.js:12:26)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! frontend@1.16.1 lint: `eslint --ext .js,.vue --ignore-path .gitignore src`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the automation_frontend@1.16.1 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
If I run this command on my local machine, it works.
user@bench:~/projects/frontend$ npm run lint
> frontend@1.16.1 lint
> eslint --ext .js,.vue --ignore-path .gitignore src
my pipeline script looks like this.
image: node:12
pipelines:
default:
- parallel:
- step:
name: Code linting
script:
- npm install eslint
- npm run lint
caches:
- node
this script was working until recently.
I removed the cache, but it did not help.
I have no idea what has changed to cause this error... Please help.
for whatever reason, now it's working.... please disregard this question.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.