All Questions
107
questions
0
votes
0
answers
12
views
create-next-app error, while running the development server after all files generated by yarn or npm
This is the error that's looks like on the dev server
And this is the terminal error
Please suggest me possible fixes, why this occurred. i found a fix but this is not a correct way to edit these ...
1
vote
0
answers
197
views
Error installing bcrypt - Error [ERR_REQUIRE_ESM]: require() of ES Module
I am trying to install bcrypt to my NextJs project but I am getting an error. I am using "yarn add bcrypt."
Error [ERR_REQUIRE_ESM]: require() of ES Module ...\Portfolio\fo
od-ordering\...
1
vote
1
answer
927
views
Cannot find module 'tailwind-config/tailwind.config.js' even though the tailwind.config.js file exists (Novel Editor)
I cloned the Novel repo (https://github.com/steven-tey/novel) and proceded to build the NextJS web app that was included in the novel/apps/web folder using Yarn. I ran yarn at the top level folder to ...
0
votes
0
answers
45
views
yarn install or yarn run build showing exit code 1 for my next js website
Showing this error in my terminal
warning "next-optimized-images > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "next-optimized-images > raw-...
0
votes
0
answers
270
views
Sharp package error while trying to run Payload CMS project
I'm trying to follow a tutorial that is building an e-commerce project based on Payload CMS template
I'm creating the payload project based on e-commerce project and then clone it to my github then ...
0
votes
0
answers
27
views
Next dev with yarn doesn't work on freshly created app
I created a new app with nextJS.
When I try to launch dev server with yarn dev with Webstorm, this appears:
$ yarn dev
yarn run v1.22.18
$ next dev
Done in 21.44s
This issue is specific to this ...
0
votes
0
answers
72
views
TypeScript Error with 'react-on-screen' in a Next.js Project | Not a valid JSX element
I'm encountering a TypeScript error when trying to use the react-on-screen package in a Next.js project. The error occurs when I run yarn build.
Type error: 'TrackVisibility' cannot be used as a JSX ...
0
votes
1
answer
221
views
NextJS Standalone Export Buildspec Error "Module not found: Can't resolve component" in CodeBuild
I have the following buildspec running via CodePipeline/CodeBuild
version: 0.2
phases:
install:
runtime-versions:
nodejs: 18
pre_build:
commands:
- ...
0
votes
0
answers
79
views
Next.JS site doesn't run in localhost
Problem 1: When I try Yarn run dev, then it throws this error in the terminal:
$ next dev Done in 8.44s. but not run localhost enter image description here
problem 2: Then when I try with Yarn start,...
2
votes
0
answers
267
views
I installed the Visual Studio 2022 too but still it is not allowing me to yarn install
Is there anyone who can help me with this issue? I cloned the project and I'm trying to install the dependencies to run it. I also installed Visual Studio 2022, while I have Visual Studio Code. It ...
4
votes
3
answers
790
views
Nextjs, Vercel | GET https://registry.npmjs.org/next/-/next-13.5.0.tgz - Not found
enter image description here
error: next@https://registry.npmjs.org/next/-/next-13.5.0.tgz' is not in this registry
build is failing on vercel deployment. it was working fine a few minutes ago, all ...
0
votes
0
answers
529
views
unable to install sharp package using yarn
when I run yarn add sharp I get the below call stack.
I tried manually installing semver with the below command with no luck either.
rm -rf node_modules
rm yarn.lock
yarn add semver
yarn cache clean
...
0
votes
0
answers
259
views
Next.js NODE_OPTIONS is not compatible with yarn v2
Important info:
yarn 2 (berry)
Next.js
I have a following script to run Next.js app (either next dev or next start), and to initialise Datadog APM tracing:
"dev": "NODE_OPTIONS='-r ./...
8
votes
1
answer
4k
views
NextJS production build not creating the .next/BUILD_ID
I'm encountering random occurrences of the .next/BUILD_ID file not being generated on a successful build. The issues started 3 days ago and I've been rebuilding the same commit multiple times to try ...
0
votes
1
answer
800
views
Docker image build successfully but after docker run : Couldn't find the node_modules state file - running an install might help (findPackageLocation)
I have a Next JS project which uses yarn 3.5.1 by default (it was a template) I can build the project via docker build successfully without any error. here is my docker file for this project:
# Stage ...