You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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"]
The text was updated successfully, but these errors were encountered: