automerge / automerge/sync-server

TypeError: Class constructor Repo cannot be invoked without 'new'

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
2
PR merge metrics
No merged PRs in 30d

Description

To reproduce:
```sh
npm install
npm start
> storage-peer@1.0.0 start
> node ./src/index.js

file:///Users/michiel/gh/automerge/sync-server/src/index.js:12
const serverRepo = Repo(config)
^

TypeError: Class constructor Repo cannot be invoked without 'new'
[...]
```

It seems the `automerge-repo` dependency has probably evolved since this code was written?

Contributor guide

No contributing guide indexed for this repository

Research direction

Run npm install and npm start to reproduce the failure, then inspect src/index.js at line 12 and check the installed automerge-repo API. Confirm the compatible Repo construction and verify that the sync server starts without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.