Code Monkey home page Code Monkey logo

Comments (8)

nicolevandersluis-cumlaude avatar nicolevandersluis-cumlaude commented on June 2, 2024

Hi! I had the same error, what helped me was to add 'pages/' before posts. So it will be 'pages/posts'.

from next-learn.

Jesse2098 avatar Jesse2098 commented on June 2, 2024

im having the same issue and i tried changing the "posts" to "pages/posts" and it is still giving me the error that says--->

Error: ENOENT: no such file or directory,
stuck on what to do next

from next-learn.

frontendsuperhero avatar frontendsuperhero commented on June 2, 2024

I have the same problem, WTF????

from next-learn.

frontendsuperhero avatar frontendsuperhero commented on June 2, 2024

Скриншот 23-12-2022 16 21 39

from next-learn.

frontendsuperhero avatar frontendsuperhero commented on June 2, 2024

Скриншот 23-12-2022 16 28 04

from next-learn.

frontendsuperhero avatar frontendsuperhero commented on June 2, 2024

Скриншот 23-12-2022 16 30 08

from next-learn.

frontendsuperhero avatar frontendsuperhero commented on June 2, 2024

I didn't pass the props correctly

I returned props without {} in the function

It looked like this:

export async function getStaticProps({ params }) {
const postData = await getPostData(params.postWithApiDynamic);

return {
props: postData: postData,
}

And we need it like this!

return {
props: {
postData: postData,
},
};
}

Thanks for the cool technology, my bad

from next-learn.

manovotny avatar manovotny commented on June 2, 2024

This is a little difficult to troubleshoot with y'all using just screenshots. Are any of you willing to commit what changes you have to a GitHub repository so we can clone the code and help troubleshoot using the same thing you are?

from next-learn.

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.