saleor / storefront

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.
https://storefront.saleor.io
BSD 3-Clause "New" or "Revised" License
1.01k stars 585 forks source link

pnpm start indicates an error #1093

Closed RuoCJ closed 1 month ago

RuoCJ commented 2 months ago

Summary

I follow these steps image image

But it keeps going wrong.

pnpm start

> saleor-site@3.0.0-a.0 start /home/rain/code/saleor-storefront
> next dev -p 3000

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from /home/rain/code/saleor-storefront/.env.development
info  - Loaded env from /home/rain/code/saleor-storefront/.env
info  - Using webpack 4. Reason: future.webpack5 option disabled https://nextjs.org/docs/messages/webpack5
It looks like you're trying to use TypeScript but do not have the required package(s) installed.

Please install @types/react by running:

        npm install --save-dev @types/react

If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).

 ERROR  Command failed with exit code 1

Steps to reproduce

  1. pnpm start

A link to a reproduction repository

No response

Output from envinfo

pnpm --version : pnpm@5 use npm install -g pnpm@5 install

timuric commented 1 month ago

Hey @RuoCJ I can't reproduce this issue, are you using the latest version from main?

RuoCJ commented 1 month ago

Hey @RuoCJ I can't reproduce this issue, are you using the latest version from main?嘿,我无法重现这个问题,你使用的是main的最新版本吗?

Sorry, I have been busy recently, so I didn't have time to reply you. I have found the error, which is indeed a version problem