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

relay compiler breaks when trying to run inside a docker #3939

Closed
daniloab opened this issue Jun 4, 2022 · 4 comments
Closed

relay compiler breaks when trying to run inside a docker #3939

daniloab opened this issue Jun 4, 2022 · 4 comments

Comments

@daniloab
Copy link
Contributor

daniloab commented Jun 4, 2022

I'm trying to build a docker image with a nextjs + relay app.

When building the image I install the dependencies and run the build command. The build command has a prebuild command responsible to run the relay compiler.

When trying to build the image following the steps above returns the error of platform not supported by the relay-compiler.

Screen Shot 2022-06-04 at 13 54 04

Here is an example of the repository with this error happening.

Steps to reproduce:

    1. git clone git@github.com:daniloab/relay-13-nextjs.git
    1. yarn
    1. docker build -t relay-13-nextjs-image .

and should return the same error:
Screen Shot 2022-06-04 at 14 22 52

would I be failing to set some platform configuration?

environment

os: macOS Big Sur 11.6 [MacBook m1]
relay: 13.2.0
node: v16.13.2

@soneymathew
Copy link
Contributor

@daniloab Does you process.platform and process.arch return these supported values?

@daniloab
Copy link
Contributor Author

daniloab commented Jun 7, 2022

@daniloab Does you process.platform and process.arch return these supported values?

Yes, avoiding run relay compiler command and get into the image the process is this one below:

Screen Shot 2022-06-07 at 10 39 53

The best resolution is building the app before sending it to the container. But once the error was caught I found it interesting to open a question

@bencoveneyttl
Copy link

Experiencing the same problem on a similar set up:

  • os: macOS Monterey 12.4 [MacBook m1]
  • relay: 13.2.0
  • node: v14.19.2
  • process.platform: linux
  • process.arch: arm64

My use case is using VSCode devcontainers - specifically the container mcr.microsoft.com/vscode/devcontainers/typescript-node:dev-14-bullseye.

@bencoveneyttl
Copy link

bencoveneyttl commented Jul 8, 2022

Looks like this might be a duplicate of #3799 - Fix shipped in https://github.com/facebook/relay/releases/tag/v14.0.0

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

4 participants