1 / 1
May 2024

Hello,

I’m setting up an app services trigger function. Here’s my directory structure:

functions ├── hello.js └── custom └── test.js

I’m trying to import test.js inside hello.js, however, when deploying this, it gives the following error:
Failed

Failed

error validating 'custom/test' function: runtime error during function validation

The code for `hello.js`` is:

exports = async function(changeEvent) { const test = require('./custom/test') }

test.js:
exports = () { return { success: "ok" }