Coder Social home page Coder Social logo

bug: supabase build problem about e2b HOT 11 CLOSED

e2b-dev avatar e2b-dev commented on May 10, 2024
bug: supabase build problem

from e2b.

Comments (11)

ValentaTomas avatar ValentaTomas commented on May 10, 2024 2

Can you git pull on master and try starting the project with the new instructions?
We added a way to start the app via Docker to solve a lot of dependency and connection issues people had.

You essentially just need to do the two steps:

1. Add env var

Create .env file by copying the .env.example

cp .env.example .env

and fill in the following variable:

2. Start the app

npm start

Then open the page on http://localhost:3000/.

from e2b.

lucasgonze avatar lucasgonze commented on May 10, 2024 1

Ah, I think this is because you're running on M1

Interesting! That's a good angle to pursue.

I'm also going to check the image I'm working inside of to be sure all the dev utilities are correct.

from e2b.

mlejva avatar mlejva commented on May 10, 2024

Hi @lucasgonze, from the logs it looks like you didn't set the following environment variables in the .env file

NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY

Did you set them?

from e2b.

ValentaTomas avatar ValentaTomas commented on May 10, 2024

Also if you want to just run the app you don't need the yarn build command - https://github.com/e2b-dev/e2b#get-started.

If you really want to build it, the env vars mentioned https://github.com/e2b-dev/e2b#3-add-env-vars are still required.

from e2b.

lucasgonze avatar lucasgonze commented on May 10, 2024

Valenta, thanks for your help. I am building because yarn install produces these errors:

➤ YN0000: ┌ Link step
➤ YN0007: │ supabase@npm:1.48.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/engines@npm:4.11.0 must be built because it never has been before or the last one failed
➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
➤ YN0009: │ utf-8-validate@npm:5.0.10 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-f30805ae/build.log)
➤ YN0009: │ bufferutil@npm:4.0.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-b23a597d/build.log)
➤ YN0007: │ prisma@npm:4.11.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/client@npm:4.11.0 [556c3] must be built because it never has been before or the last one failed
➤ YN0007: │ ai-api@workspace:. must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 15s 565ms
➤ YN0000: Failed with errors in 16s 233ms

from e2b.

mlejva avatar mlejva commented on May 10, 2024

Lucas, please follow the get started guide from our readme. You have to call yarn install:all

from e2b.

lucasgonze avatar lucasgonze commented on May 10, 2024

install:all produces results similar to a plain install:

➤ YN0000: ┌ Link step
➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
➤ YN0009: │ bufferutil@npm:4.0.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-19592493/build.log)
➤ YN0009: │ utf-8-validate@npm:5.0.10 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-78399284/build.log)
➤ YN0008: │ ai-api@workspace:. must be rebuilt because its dependency tree changed

from e2b.

mlejva avatar mlejva commented on May 10, 2024

Can you please provide the full terminal output?

from e2b.

mlejva avatar mlejva commented on May 10, 2024

Ah, I think this is because you're running on M1

from e2b.

mlejva avatar mlejva commented on May 10, 2024

We did some quick research and the problem seems to be this particular library eerohele/sublime-lxml#11

We haven't had time to address it yet though.

from e2b.

lucasgonze avatar lucasgonze commented on May 10, 2024

Looks good to me.

from e2b.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.