Skip to content

HEAPU8 is undefined #1

@GenghisChen

Description

@GenghisChen

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 install

Please advise
Thanks
Chen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions