It’s released now! But I’m having issues – I’ve installed
import safe from '@maidsafe/safe-node-app';
and now I’m getting
TypeError: exists is not a function
> 158 | if (exists(join(dir, 'package.json')) || exists(join(dir, 'node_modules')))
It seems this error is caused by
safe-app itself; commenting out the
import statement fixes the error. I wasn’t able to find much help online. Any ideas?
N.B. I’m using React with
create-react-app. Here’s a link to a working demo of the error: https://github.com/cooperka/personal-website/commit/9d4474b9cf1df9f8a690fb3320f1be0d132cb2f8
After a bit more digging, it looks like
weak which requires
bindings which creates a function called
exists (source), but in my case this function is
path.existsSync are all undefined. This happens using [node v6.4 + npm v4.0] and also [node v8.4 + npm v5.4]. I’ll keep digging tomorrow.