Rc-apps package fails on windows on seemingly simple import

i am trying to import a simple configuration object to star app configuration

like this:
import { ParserConfig } from “./config/ParserConfig”;

with the imported file looking like that

export abstract class ParserConfig {

public static apiBaseUrl: string = 'some url';

}

before i tried importing a handler class that i wanted to method export PreMessageSentHandler to, in both cases in my windows based development system the rc-package process fails with

Error: Build failed with 1 error:
C:/Users/username/AppData/Roaming/nvm/v14.18.3/node_modules/@rocket.chat/apps-cli/node_modules/@rocket.chat/apps-compiler/bundler/esbuild.js:47:92: error: [plugin: apps-engine] The “path” argument must be of type string. Received undefined

what am i doing wrong? is this a windows specific issue somehow?

apparently this is a bug

Did you manage to find a fix for it?

no its a bug … you can work around it using WSL (windows linux subsytem) but the build process then is 10 times slower then when using native node/rc-apps on windows

1 Like

Please can you share me your workaround for that? Seems like I’m still stuck there.