Comments (5)
I learned yesterday that you can mark peerDeps as optional using peerDependenciesMeta
in package.json
from automerge-repo.
@neftaly can I just check, do you mean that this fails if you set up a new project then run yarn add @automerge/automerge-repo
?
from automerge-repo.
Yes. This is the package.json:
{
"name": "automerge-react-quick-start",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@automerge/automerge-repo": "^0.2.1",
"@automerge/automerge-repo-network-broadcastchannel": "^0.2.1",
"@automerge/automerge-repo-network-websocket": "^0.2.1",
"@automerge/automerge-repo-react-hooks": "^0.2.1",
"@automerge/automerge-repo-storage-localforage": "^0.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"eslint": "^8.46.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.1.6",
"vite": "^4.4.9"
}
}
This is the yarn install
output:
neftaly@nef-l13:~/dev/automerge-react-quick-start$ yarn install
➤ YN0000: ┌ Resolution step
➤ YN0032: │ cbor-extract@npm:2.1.1: Implicit dependencies on node-gyp are discouraged
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0002: │ @automerge/automerge-repo-network-broadcastchannel@npm:0.2.1 doesn't provide @automerge/automerge (p05078), requested by @automerge/automerge-repo
➤ YN0002: │ @automerge/automerge-repo-network-websocket@npm:0.2.1 doesn't provide @automerge/automerge (pee564), requested by @automerge/automerge-repo
➤ YN0002: │ @automerge/automerge-repo-network-websocket@npm:0.2.1 doesn't provide ws (pab40b), requested by isomorphic-ws
➤ YN0002: │ @automerge/automerge-repo-react-hooks@npm:0.2.1 doesn't provide @automerge/automerge (p39440), requested by @automerge/automerge-repo
➤ YN0002: │ @automerge/automerge-repo-storage-localforage@npm:0.1.4 doesn't provide @automerge/automerge (pc4b62), requested by @automerge/automerge-repo
➤ YN0002: │ @automerge/automerge-repo@npm:0.1.4 [5ac7f] doesn't provide @types/node (p9bf44), requested by ts-node
➤ YN0002: │ @automerge/automerge-repo@npm:0.1.4 [5ac7f] doesn't provide typescript (pe801d), requested by ts-node
➤ YN0002: │ @automerge/automerge-repo@npm:0.2.1 [a08e8] doesn't provide @types/node (p2e833), requested by ts-node
➤ YN0002: │ @automerge/automerge-repo@npm:0.2.1 [a08e8] doesn't provide typescript (p8b4a7), requested by ts-node
➤ YN0002: │ automerge-react-quick-start@workspace:. doesn't provide @automerge/automerge (pe7da6), requested by @automerge/automerge-repo
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 8m 2s
...
from automerge-repo.
https://github.com/neftaly/automerge-react-quick-start
from automerge-repo.
Thanks! I will let you know if there are more deps :)
from automerge-repo.
Related Issues (20)
- Delete protocol HOT 1
- Unable to use automerge-repo in Deno: Property 'on' missing from 'Repo'
- Handle unavailable files with no storage/peers better HOT 7
- How should the "unavailable" status interact with network adapter startup? HOT 3
- Storage Snapshots HOT 1
- Storage Snapshots HOT 1
- Lose extra diff HOT 10
- apps under /examples don't seem to work HOT 4
- can't load automerge repo HOT 4
- Allow Svelte's `document` store to explicitely receive the `repo` HOT 4
- Sync server scalability for live collaboration HOT 7
- On failure, and what to do about it HOT 2
- Cover reconnection bug with a test
- Don't bundle React with the hooks package HOT 5
- Timeout in DocHandle waitFor prevents process from exiting. HOT 3
- Data durability question HOT 8
- Any reason for `StorageAdapter` to be an abstract class as opposed to an interface
- "Error: DocHandle is not ready" with useBootstrap HOT 3
- Wrong peerMetadata Sent on Message receive in BroadcastChannel adapter HOT 4
- OPFS storage adapter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automerge-repo.