Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on Windows.. #26

Open
lingojourney opened this issue Jul 30, 2023 · 1 comment
Open

Build failed on Windows.. #26

lingojourney opened this issue Jul 30, 2023 · 1 comment

Comments

@lingojourney
Copy link

Hi,
I'm on Windows, and I see

``
C:\D\GitHub\digital-garden>npm run dev

[email protected] dev
next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - SWC minify release candidate enabled. https://nextjs.org/docs/messages/swc-minify-enabled
event - compiled client and server successfully in 1054 ms (137 modules)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
wait - compiling / (client and server)...
event - compiled client and server successfully in 2.4s (1043 modules)
wait - compiling /note/[id]...
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
Failed: CANNOT Parseundefined
``

Would you be willing to offer some pointers?

Warmly,
Ben

@Quessian-Phaedrus-Sternabite

Hi! Running on windows leads to an error in the package.js file I believe, as it uses the command rm -rf, a linux/unix command. To address this, change it to del /q, and it should work. This breaks netlify however, so be cautious. Also, make sure that instead of running yarn && yarn run dev, you run yarn, enter, yarn run dev. && is not supported on windows.

mrdrprofuroboros pushed a commit to mrdrprofuroboros/digital-garden that referenced this issue Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants