Git Product home page Git Product logo

Comments (12)

reingoldkz avatar reingoldkz commented on June 2, 2024

https://www.npmjs.com/package/next-transpile-modules

https://nextjs.org/blog/next-13-1
https://nextjs.org/blog/next-13-1#built-in-module-transpilation-stable

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

Hi.

I did this project in the past. And also I'm not so good at programming at the moment.

There is some breaking changes in chapter 9.

in my project 9-begin everything is kinda fine, but 9-end, I'm having issue with book chapters. Chapters are not showing when I click to book.

from builderbook.

klyburke avatar klyburke commented on June 2, 2024

Hi @reingoldkz Thanks for reporting. We will look into the potential Heroku issue.

Regarding 9-end, are you running our exact code from the repo? I just ran 9-end on my machine and didn't see any issues. I am able to open my sample book and see the chapters.

Try running 9-end directly from our repo with your environmental variables.

Please also share any screenshots or error messages you see regarding "chapters are not showing".

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

Hi, @klyburke

If you run code locally it works fine.

But when we deploy the code to Heroku, it is giving error: Cannot find module 'next-transpile-modules'

https://nextjs.org/docs/pages/api-reference/next-config-js/transpilePackages

Next.js 13 can automatically transpile and bundle dependencies from local packages (like monorepos) or from external dependencies (node_modules). This replaces the next-transpile-modules package.

Therefor, I think we need to change next.config.js file.
But I am beginner, and can't understand, how do it correctly.

My projects running OK on Herorku, but there is the problem with showing chapters of book.

Thanks for your help.

from builderbook.

tima101 avatar tima101 commented on June 2, 2024

@reingoldkz Not sure about Heroku deployment. What happens when you have "next-transpile-modules" inside package.json: https://github.com/async-labs/builderbook/blob/master/builderbook/package.json

Please make sure that you run "yarn install" after adding package manually to package.json file.


If problem persists I can try deploying your project to our Heroku account. For that to happen, you can add me to your private repo and provide all necessary instructions inside repo's README.md file.

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

My problem: Book chapters are not showing up.

And the problem occurs right after this part of the book till the end.

https://builderbook.org/books/builder-book/prepare-project-for-deployment-environmental-variables-production-development-logger-seo-robots-txt-sitemap-xml-compression-and-security-deploy-project-heroku-testing-deployed-project-aws-elastic-beanstalk#next-js-v13-other-package-upgrades

I couldn't figure it out what is the couse.

Maybe I think it is linked to next.config.js file update and code there.

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

the project running OK on Heroku and loclhost:8000,

but there is a problem with showing book Chapters.

book chapters not showing up on local dev and on Heroku app.

I can't figure it out why.

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

error: Content sync has error {"error":{},"path":"chapter-1.md"}

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

Hi async-labs,

My problem is written in above messages,

I want just to give more information.

So, at the 9-begin my code and localhost dev environment runs OK.
Everything is fine.

I can add books and chapters show up. Everything is fine.

I continue to make changes on 9-th chapter, till the Next.js v13 and other packages upgrade, and I get error:
chapter is not showing up

error: Content sync has error {"error":{},"path":"chapter-1.md"}

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

my code is from builderbook\9-begin, I have needed env variables,

and then I switch to 9-end code, to check. but problem remains.

I can't sync Chapters.
error: Content sync has error {"error":{},"path":"chapter-1.md"}

I looked very closely and invested a lot of time, but can't figure it out.
I'm beginner, and should admit that I can't understand all the code, but I am so close to make this project to work

This problem is I can't solve at the moment.

Any assist from your side will be helpful.

Thanks

from builderbook.

reingoldkz avatar reingoldkz commented on June 2, 2024

Breaking change from 9-begin to 9-end in my case was
to downgrade marked package version.
from
"marked": "^4.2.5",

to
"marked": "^1.2.7",

from builderbook.

tima101 avatar tima101 commented on June 2, 2024

marked should be 1.2.7 inside 9-end project

from builderbook.

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.