From 2c7c5f06dace2e1e7f949cfda409d91f8feed872 Mon Sep 17 00:00:00 2001 From: Lars Hartvigsen Date: Thu, 8 Jun 2023 09:16:16 +0200 Subject: [PATCH] Update next to avoid issue during build I had an issue "Error: Cannot find module 'sharp'" while building the next project. I found this Stack Overflow: https://stackoverflow.com/questions/65894000/install-sharp-without-github-fetch-for-nextjs-error-cannot-find-module-sharp Updating next to 10.2.3 worked for me --- .../package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/06-onwards-to-a-bigger-project-starting-project/package.json b/code/06-onwards-to-a-bigger-project-starting-project/package.json index 84d39ef1a7..154c04ec1b 100644 --- a/code/06-onwards-to-a-bigger-project-starting-project/package.json +++ b/code/06-onwards-to-a-bigger-project-starting-project/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "next": "10.0.6", + "next": "10.2.3", "react": "17.0.1", "react-dom": "17.0.1" }