GithubHelp home page GithubHelp logo

Comments (10)

DoctorDerek avatar DoctorDerek commented on May 7, 2024 2

@abstractvector Helped me sleuth out that this doesn't seem to be a reported Next.js issue, so it must be something for this project. (Thanks Matt!)

λ npm run build

> [email protected] build
> next build

info  - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5 info  - Checking validity of types
info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data
info  - Generating static pages (3/3)
info  - Finalizing page optimization

Page                                Size     First Load JS
┌ ○ /                               7.37 kB        71.4 kB
├   └ css/48fe4f0a1886e63f0800.css  675 B
├   /_app                           0 B            64.1 kB
├ ○ /404                            3.68 kB        67.7 kB
└ λ /api/hello                      0 B            64.1 kB
+ First Load JS shared by all       64.1 kB
  ├ chunks/597.792d30.js            13.2 kB
  ├ chunks/778.98c823.js            7.11 kB
  ├ chunks/framework.bcc415.js      42 kB
  ├ chunks/main.9ca82e.js           151 B
  ├ chunks/pages/_app.017c26.js     565 B
  ├ chunks/webpack.a2d1e7.js        993 B
  └ css/9555fbe4118c83c59ab9.css    203 B

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
   (ISR)     incremental static regeneration (uses revalidate in getStaticProps)

A npx next-app project works fine for me on Windows 10 (npm run build).

from tailwind-nextjs-starter-blog.

DoctorDerek avatar DoctorDerek commented on May 7, 2024

from tailwind-nextjs-starter-blog.

PWSys avatar PWSys commented on May 7, 2024

After I posted the issue I thought I may be behind with npm and node. I updated them both and still have the same result.
❯ npm -v
7.12.0
❯ node -v
v14.16.1

Like you, I am also getting the error

TypeError: Cannot read property 'page' of undefined

The error I originally posted was from the verbose log file. Really, neither seems to give any clues.

WSL can build the application that had npm install run from Windows, indicating it is something directly related to the built, not an issue on the install of packages.

from tailwind-nextjs-starter-blog.

PWSys avatar PWSys commented on May 7, 2024

I can also confirm that other next 10.2 projects build fine on Windowsx64.

from tailwind-nextjs-starter-blog.

DoctorDerek avatar DoctorDerek commented on May 7, 2024

from tailwind-nextjs-starter-blog.

timlrx avatar timlrx commented on May 7, 2024

Yes, I develop it on WSL. I would have to take a look at this in more detail to find the problem but it seems to be related to the additional scripts triggered i.e. node ./scripts/generate-sitemap. See if changing the build script to just next build works for you?

I don't run build on windows as it is meant to be deployed and served on Linux servers as opposed to windows servers.

from tailwind-nextjs-starter-blog.

PWSys avatar PWSys commented on May 7, 2024

Thanks @timlrx . I did try the build without generating the site map, with the same results. So it is something with running next build.

from tailwind-nextjs-starter-blog.

PWSys avatar PWSys commented on May 7, 2024

This looks related to #43.

The error below probably being generated because the markdown file isn't loading on Windows.

TypeError: Cannot read property 'page' of undefined

from tailwind-nextjs-starter-blog.

timlrx avatar timlrx commented on May 7, 2024

That's the cause of the failed build. Have fix it and verified that it builds for Windows.

from tailwind-nextjs-starter-blog.

PWSys avatar PWSys commented on May 7, 2024

Thanks @timlrx !

from tailwind-nextjs-starter-blog.

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.