-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello
When building and running the app in a browser according to the posted instruction, the following error appears:
TypeError: can't access property "buffer", module.HEAPU8 is undefined
The module that is passed into the constructor of wrapper.js does not have the HEAPU8 property.
Built using the following Dockerfile:
FROM ubuntu:latest
WORKDIR /app
RUN apt update && apt install -y git cmake make python3 xz-utils npm vim
RUN git clone https://github.com/emscripten-core/emsdk.git
SHELL ["/bin/bash", "-c"]
RUN cd emsdk && \
./emsdk install latest && \
./emsdk activate latest
RUN git clone https://github.com/WebCryptomining/WebRandomX.git
WORKDIR /app/WebRandomX
RUN sed -i 's/Your Server IP/127.0.0.1/g' src/js/job.js
RUN source /app/emsdk/emsdk_env.sh && \
mkdir build && cd build && \
emcmake cmake -DARCH=native .. && \
make && \
emcmake cmake -DARCH=native -DTESTS=true .. && \
make
RUN npm installPlease advise
Thanks
Chen
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels