Skip to content

TypeError: DEBUG is not a function #11

@ManuelB

Description

@ManuelB

Use the current version of SAP Business Application Studio based on the following tutorial:
https://developers.sap.com/tutorials/fiori-tools-cap-create-application.html

$ npm run watch

> [email protected] watch
> npx cds watch

(node:3082) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3082) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
[INTERNAL ERROR] TypeError: DEBUG is not a function
    at Server.listening (/home/user/.node_modules_global/lib/node_modules/@sap/cds-dk/lib/watch/livereload-server.js:24:16)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Please report this error.

It seams that the following code returns undefined:

const DEBUG = cds.debug('cli|watch|livereload')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions