Comments (10)
@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.
from tailwind-nextjs-starter-blog.
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.
I can also confirm that other next 10.2 projects build fine on Windowsx64.
from tailwind-nextjs-starter-blog.
from tailwind-nextjs-starter-blog.
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.
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.
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.
That's the cause of the failed build. Have fix it and verified that it builds for Windows.
from tailwind-nextjs-starter-blog.
Thanks @timlrx !
from tailwind-nextjs-starter-blog.
Related Issues (20)
- adding Authjs HOT 1
- [Feature request] navbar dropdown HOT 4
- Font is showing in production but not in local HOT 1
- Add pagination to the tags page HOT 3
- Fails to deploy to Github Pages HOT 4
- Unable to install HOT 3
- Where should I put this script? HOT 1
- Blog Posts with 'draft' Status Incorrectly Displayed HOT 2
- deploy vercel go wrong HOT 8
- Collapsable Markdown Headers/Lists HOT 1
- Add support for blog Pin to Top HOT 5
- How to enable discussions for a blogHow to enable discussions for a blog HOT 1
- Buttondown Api i can't generate help HOT 3
- Tags not updated HOT 2
- New Icons added request HOT 3
- Help with banner to visible in the homepage of the blog and inside HOT 2
- Im using convertkit but the newsletter not working!! HOT 1
- Add z-index to ThemeSwitch menu HOT 2
- How can I use Disqus in the app, help wanted HOT 2
- Question about tap to top on status bar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-nextjs-starter-blog.