async-labs / builderbook

Open source web application to learn JS stack: React, Material-UI, Next.js, Node.js, Express.js, Mongoose, MongoDB database.
https://builderbook.org
MIT License
3.77k stars 893 forks source link

Chapter 1 - yarn build raises an error. #376

Closed mathisrenier closed 3 years ago

mathisrenier commented 4 years ago

Hello,

Yarn build returns an error on my machine. Here is what I get:

Screen Shot 2020-08-25 at 11 14 03 AM

I tried adding dotenv, building 1-end and changing the dependencies' versions to those of 8-end, but none of that worked.

What am I missing?


Click to see Hill for issue #376
  <div><img src="https://async-github-hills.s3.amazonaws.com/builderbook-builderbook/376.png" alt="Single issue hill" class="s3-image" width="100%" /></div></details>
  <details><summary>Click to see <b>Hill for all issues </b></summary><div>
  <img src="https://async-github-hills.s3.amazonaws.com/builderbook-builderbook/all-issue-hill.png" alt="All issue hill" class="s3-image" width="100%" /></div></details>

created by Async

mathisrenier commented 4 years ago

I commented out require('dotenv').config(); in the file next.config.js and it seems to work.

tima101 commented 4 years ago

@mathisrenier Thanks for reporting solution.

I believe we don't have next.config.js file in book/1-end at this moment. Are you following instructions in chapter 1 or modifying project outside the scope of the book?

mathisrenier commented 4 years ago

@tima101 I am following instructions. I only have 1-begin open in VSCode but somehow next must have had access to the parent folder.

tima101 commented 4 years ago

@mathisrenier Got it. Thanks.

Another reason, besides ESLint and confusion, to put main project in this repo into separate directory.

tima101 commented 3 years ago

@mathisrenier We made many updates to codebases. Please let me know if you still have problem here.

mathisrenier commented 3 years ago

I cloned the updated codebase and yarn build works perfectly now.