ORESoftware / r2g

▷ Test your package in the published format, without having to publish to NPM.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"could not read your .r2g/config.js files"

ORESoftware opened this issue · comments

Most likely because:

const path = require('path');

if (!path.isAbsolute(process.env.MY_DOCKER_R2G_SEARCH_ROOT || '')) {
  throw new Error('Please set the env var "MY_DOCKER_R2G_SEARCH_ROOT" to an absolute path.');
}

Actual error:

r2g: r2g warn: Could not read your .r2g/config.js file at path: /Users/alex/codes/ores/linked-queue/.r2g/config.js

we need to actually show the stack trace of the error.

and perhaps MY_DOCKER_R2G_SEARCH_ROOT should default to the pwd if it's above $HOME, o/w throw an error.