Skip to content

Error in nexjs of run start #76

Open
@abrahamibo

Description

@abrahamibo

Description

Next.js 14.2.4 (Page routing)
pnpm v8@latest


ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/home/ibo/Dev/project/gitlab/front/proui/app/node_modules/.pnpm/react-query-rewind@2.1.5_@tanstack[email protected][email protected][email protected]/node_modules/react-query-rewind/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

Reproduction

pnpm dev

System information

System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 PRO 6850U with Radeon Graphics
Memory: 2.28 GB / 27.17 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 18.20.3 - ~/.nvm/versions/node/v18.20.3/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v18.20.3/bin/npm
pnpm: 8.15.8 - ~/.nvm/versions/node/v18.20.3/bin/pnpm
Browsers:
Chrome: 126.0.6478.61
Chromium: 126.0.6478.114

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions