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

Error: Error relocating /app/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node: _ZN2v86Object16SetInternalFieldEiNS_5LocalINS_4DataEEE: symbol not found` #658

Open
agniokas opened this issue May 16, 2024 · 0 comments

Comments

@agniokas
Copy link

I have nextjs project and want to host a curlconverter in some pages.
The project works on local machine, but i had to push tree-sitter.wasm and tree-sitter-bash.wasm files to each .netx/static/chunks/pages/page for it to work, even if the page wouldn't have curlconverter in it.
However when when build with docker it gives error "Error: Error loading shared library /app/node_modules/tree-sitter/build/Release/tree_sitter_runtime_binding.node: Exec format error`" and "Failed to load resource: the server responded with a status of 502 ()"

Has anyone encountered similar issue and could help solving it?

My Dockerfile:
FROM node:18-alpine
WORKDIR /app
COPY ./.next/standalone .
COPY ./public ./public
COPY ./.next/static ./.next/static
ENV NEXT_SHARP_PATH=/app/node_modules/sharp
ENTRYPOINT ["node"]
CMD ["server.js"]

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

No branches or pull requests

2 participants