Comments (4)
For working with the unpublished p2panda-js version:
cd p2panda
git pull origin main
cd p2panda-js
npm install
npm run build
npm link
And in the beep-boop repo:
npm link p2panda-js
In case a wasm error is thrown, copy the ***.module.wasm
file from p2panda-js/lib
into beep-boop/dist
. After that, run in the beep-boop repo:
npx serve dist
from zoo-adventures.
Two issues I found that I can’t resolve
- loading issue:
p2panda-js requires wasm. that means p2panda-js will try to import it over the network, but the code (e.g.createKeyPair()
) can’t or won’t wait for wasm to be imported. For that,keyPair.ts
andsession.ts
from p2panda-js probably can be improved. - null pointer error:
after calling theprivateKey()
we get this error
from zoo-adventures.
loading issue: p2panda-js requires wasm
To solve the issue with Webpack not importing the .wasm
file of p2panda-js
we just found a solution (not elegant, but working for now):
-
Install the CopyWebpackPlugin as a dev dependency
-
Add the following config under
plugins
in the webpack file (CopyPlugin
needs to be imported first):new CopyPlugin({ patterns: [ { from: 'node_modules/p2panda-js/lib/*.wasm', to: '[name][ext]' }, ], }),
-
Restart the
npm run serve
task. Webpack will now copy the needed.wasm
file into thedist
folder.
I'm making a ticket about this issue, we should evaluate if this is a fine solution for people using Webpack as a bundler or if we need to rewrite our bundling strategy in p2panda-js
😢 p2panda/p2panda#126
from zoo-adventures.
null pointer error: after calling the privateKey() we get this error
This might be related to this invalid syntax here: https://github.com/p2panda/beep-boop/blob/Integrate-new-p2panda-js-0.2.0-API/src/App.tsx#L50 : createKeyPair
is a Promise and not a Class so the new
keyword does not make sense here. Maybe this resolves the issue? 👍
from zoo-adventures.
Related Issues (19)
- Websocket JSON RPC client HOT 1
- Wrapper around JSON RPC methods HOT 1
- Generate and store key pair on first start
- Import p2panda-js
- Encode bamboo entry and send it to node via RPC endpoint HOT 1
- Find a more panda name for this project HOT 1
- Embed aquadoggo node in tauri
- Higher-order component for p2panda state HOT 1
- Replace standard(x) with prettier
- Tasks for demo-app HOT 2
- CI: Add tauri build
- Persist key in Tauri
- Error running Tauri dev build HOT 1
- Feature: Edit messages afterwards
- Replace RPC with GraphQL api
- Deploy schema on our node and change default to "production" configuration
- Diagonal lines do not get detected
- Use shirokuma
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 zoo-adventures.