LiveDuo / destack

Page builder for Next.js 🅧. Zero-config deployment 🚀. React now supported!
MIT License
1.61k stars 324 forks source link

Nextjs build can't show the page #97

Closed Cobb-Zhang closed 1 year ago

Cobb-Zhang commented 1 year ago

Nextjs version: 13.4.19 destack version: 2.1.2 issue: when I build the project and start it, the page can't show the page that i create in the dev environment. image

franciscoarruda commented 1 year ago

Having the same problem, i believe is not finding the theme

LiveDuo commented 1 year ago

@Cobb-Zhang @franciscoarruda I had a look into the issue.

From the screenshot it seemed there was an unnecessary request to the development server. I just pushed a fix for that https://github.com/LiveDuo/destack/commit/565b886bfa105bad9458dc4033235489fead20fe.

I suggest you update to destack 2.1.3 and start your project again. If the problem persists I would need more info to figure it out. Maybe a repo that reproduces the problem and more details about your OS and the node/npm versions you are using.

franciscoarruda commented 1 year ago

I'm using Destack-Starter.

I tried again from the start:

The error that shows is: error error2

LiveDuo commented 1 year ago

@franciscoarruda Did you start with npm run build and npm run start before running npm run dev?

It should not throw errors even if you build without creating the page but might shed some light.

franciscoarruda commented 1 year ago

Yes i did run build and the run start

franciscoarruda commented 1 year ago

I believe the error comes from this function, not sure

error3

LiveDuo commented 1 year ago

It should be.

I don't get the error by default on my machine but I noticed I do when I delete data/default.json.

LiveDuo commented 1 year ago

@franciscoarruda It was an issue with Windows which have some differences from Unix based systems such as Mac and Linux.

I pushed https://github.com/LiveDuo/destack/commit/eb7ba180794b449223b7cc46f28c5d4edcdb632e and https://github.com/LiveDuo/destack/commit/506ed94c9a1a3479a5de1607987431076631728f that should fix the issue. Already, tested it on a Windows machine and it works fine now.

Update to the latest version to test it out.

If you still experiencing issues let me know.

franciscoarruda commented 1 year ago

Fixed 👌🫡 Nice project btw !

LiveDuo commented 1 year ago

Thanks!

Cobb-Zhang commented 1 year ago

@LiveDuo Fixed,good job !This project is really convenient!

Cobb-Zhang commented 1 year ago

Just as you say, update the lastest version which can fix the problem.