Deploy: "Cannot read property 'loadLevels' of undefined"

I’ve updated backendless-coderunner to version 7. When trying to deploy my JavaScript-services, I’m getting the error Cannot read property 'loadLevels' of undefined (services\<service-name>.js) for all of my services.

What to do?


Hi @Klaas_Klever

Looking into it

I just tried to deploy cloud code from my app and it works well.
Could you please specify the steps to reproduce the issue?

I went back to coderunner 6.7.0. and deployment went well. Here is my package.json:

  "name": "beeu",
  "version": "1.0.0",
  "scripts": {
    "debug": "coderunner debug",
    "deploy": "coderunner deploy"
  "devDependencies": {
    "backendless-coderunner": "^6.7.0"
  "license": "MIT",
  "dependencies": {
    "backendless-request": "^0.4.3"

Changing package.json to include "backendless-coderunner": "^7.0.0" and re-installing.

npm run deploy is now producing the above mentioned errors plus this one.

13:46:26.624 [master] Error: Error: Nothing to publish
    at buildModel (C:\Develop\...\node_modules\backendless-coderunner\lib\server-code\publisher.js:28:13)
    at publish (C:\Develop\...\node_modules\backendless-coderunner\lib\server-code\publisher.js:60:23)
    at Object.start (C:\Develop\...\node_modules\backendless-coderunner\lib\server-code\publisher.js:140:12)
    at startRunner (C:\Develop\...\node_modules\backendless-coderunner\lib\cli\clirunner.js:104:18)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

What is your npm-version? What is your nodejs-version?


I was able to reproduce the issue:

  1. have a simple API Service
  2. specify a logger before defining the API Service class
  3. deploy it

const testLogger = Backendless.Logging.getLogger('test')

class SampleService {


we are working on the fix

Could you please try to upgrade your coderunner to the latest version 7.0.1 and redeploy your code?

Is working now. Thanks.

B.t.w… what is the node.js runtime version you are using on the servers? I want to keep my local node.js as up-to-date as possible …


at this moment on the cloud production we use 14.x,
however, we are in the middle of upgrading to 18.x, and we almost migrated all our services and testing now. So, I assume in the nearest future there will be 18.x