Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building not working since no package.json in the project #5

Open
xocdr opened this issue Aug 28, 2021 · 1 comment
Open

Building not working since no package.json in the project #5

xocdr opened this issue Aug 28, 2021 · 1 comment

Comments

@xocdr
Copy link

xocdr commented Aug 28, 2021

README talks about building using npm run build:* but that is not possible since no package.json is available.

Please provide proper documentation (and while you are at it, provide proper documentation for the serialization library too).

@rooooooooob
Copy link
Contributor

I think that part was just a mistake since we use those commands in the serialization lib. They're aliases for the standard wasm-pack build/pack commands, as it is mentioned it can be built from. The other documentation we have for this crate inside of example/rust is aimed at people using it from rust which documents basic usage as well.

It's a rust project which just provides wasm_bindgen wrappers to everything. In the meantime if you're trying to get this to work until the documentation has been updated try:

wasm-pack build --target=browser (or nodejs)
wasm-pack pack

from the rust directory which will generate a pkg directory containing the built wasm along with the javascript glue code.

I hope this helps a bit until the documentation for js usage can be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant