Problem
An Azure Functions project doesn't launch with the error "Can't run Azure Functions host. No Azure Functions Core Tools information could be determined". The following error can be seen in the Run output:
Workspace: /home/username/.AzureToolsForIntelliJ/azurite
Attached to Azurite process.
/usr/local/lib/node_modules/azurite/dist/src/common/persistence/MemoryExtentStore.js:53
return this._chunks.get(categoryName)?.chunks.get(id);
^
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:85:18)
at Object.<anonymous> (/usr/local/lib/node_modules/azurite/dist/src/common/ConfigurationBase.js:7:29)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Workspace: /home/bryce/.AzureToolsForIntelliJ/azurite
Attached to Azurite process.
/usr/local/lib/node_modules/azurite/dist/src/common/persistence/MemoryExtentStore.js:53
return this._chunks.get(categoryName)?.chunks.get(id);
^
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:85:18)
at Object.<anonymous> (/usr/local/lib/node_modules/azurite/dist/src/common/ConfigurationBase.js:7:29)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Cause
The issue is caused by using a wrong node executable being used.
Resolution
- Check which node is set in Settings | Languages & Frameworks | Node.js. If it is not the LTS version, install the LTS version (or higher) and ensure node is set accordingly in Rider.
- Set Settings | Languages & Frameworks | Node.js to a newly installed node;
- Reinstall azurite using the npm from the updated node;
- If the path to Azure Core tools is determined by your environment path, try switching Settings | Tools | Azure | Functions | Azure Functions Version | v4 | Managed by Rider -> From environment PATH;
Comments
0 comments
Please sign in to leave a comment.