You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. (/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/verifySolidAccessToken.js:11:41)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
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. (/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/verifySolidAccessToken.js:11:41)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
The text was updated successfully, but these errors were encountered:
And all seemed to work fine, so I can not recreate your error.
May I ask you which NodeJS version you are running? Perhaps that might be the underlying cause.
I am doing all of this with node version v18.18.2 by executing node -v in my terminal.
(I am also using Ubuntu LTS)
I know that the package that gives the error (@solid/access-token-verifier) depends on a node version of at least 14 due to Nullish coalescing.
So an earlier version of NodeJS might lead to the CSS version 5 not starting.
Hi @woutslabbinck
When trying to run I get stuck (I use default Ubuntu LTS packages). See below. Any suggestions would be much appreciated.
Best, Ross
Command: npx community-solid-server -c memory-no-setup.json
Response:
/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/parseSolidAuthorizationHeader.js:14
const [match, joseHeader, jwsPayload, jwsSignature] = /^(?:DPoP|Bearer) +([\w-
+/]+).([\w-+/]+).([\w-~+/]+)(?:=+)?$/i.exec(authorizationHeader) ?? [];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. (/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/verifySolidAccessToken.js:11:41)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Alternatively, I get:
Command: npx community-solid-server -c @css:config/file-no-setup.json -f ./.data
Response:
/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/parseSolidAuthorizationHeader.js:14
const [match, joseHeader, jwsPayload, jwsSignature] = /^(?:DPoP|Bearer) +([\w-
+/]+).([\w-+/]+).([\w-~+/]+)(?:=+)?$/i.exec(authorizationHeader) ?? [];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. (/root/Solid-Agent/node_modules/@solid/access-token-verifier/dist/algorithm/verifySolidAccessToken.js:11:41)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
The text was updated successfully, but these errors were encountered: