metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

[Bug]: TypeScript issue #2156

Closed jester91 closed 2 years ago

jester91 commented 2 years ago

Which package is this bug report for?

storefront

Issue description

Hi!

I wanted to run the storefront with minor changes, I've added a refresh button(Material, I've installed with npm) to the metaplex\js\packages\web\src\components\AuctionCard\index.tsx component so the user can refresh the page when the auction is done, but after that change, I'm not able to start the page. Previous commands: npm install @material-ui/core npm install @material-ui/icons

How I run the code:

  1. cd js/packages/web
  2. yarn start

I've already tried to "yarn add --dev @types/react" command, but it did not help.

Thanks!

Command

No response

Relevant log output

yarn start
yarn run v1.22.17
$ npm-link-shared ../common/node_modules/ . react
Will be installing modules from `../common/node_modules/` to `./`...
Restricted to the following modules [ 'react' ]
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Loaded env from D:\Projects\FORK_METAPLEX\metaplex\js\packages\web\.env
info  - Using webpack 5. Reason: Enabled by default 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:

        yarn add --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.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Operating system

Windows 10

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.