Error compiling Rocket Chat Marketplace App


#1

Hello there,

I installed all needed files for creating Rocket.Chat Marketplace Apps but when I run “rc-apps create” or “rc-apps package” I get an error:

Error: absolute path: C:/Users/User/test/app.json
at validateMetadataPath (C:/Users/User/AppData/Roaming/npm/node_modules/@rocket.chat/apps-cli/node_modules/yazl/index.js:367:74)
at ZipFile.addFile (C:/Users/User/AppData/Roaming/npm/node_modules/@rocket.chat/apps-cli/node_modules/yazl/index.js:24:18)
at AppPackager.zipItUp (C:/Users/User/AppData/Roaming/npm/node_modules/@rocket.chat/apps-cli/lib/misc/appPackager.js:36:17)

If I’m not allowed to use absolute paths then how can i else package my app?

Thanks for support


#2

I’m also running into this issue. Could it be a Windows specific issue, an issue with ‘\’ vs ‘/’?

Edit: I can confirm that it is working fine on Ubuntu machines.


#3

Very possible, can you provide some steps to reproduce?


#4

On a windows machine:
Install rc-apps cli with npm install -g. I’ve been using the latest 1.3.2.
Create a Rocket Chat app using rc-apps create.
Try to package app with rc-apps package.

I got
Error: absolute path
at validateMetadataPath
at ZipFile.addFile
at AppPackager.zipItUp


#6

Someone submitted a fix https://github.com/RocketChat/Rocket.Chat.Apps-cli/pull/44 :slight_smile: