Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/run error: Cannot find module '@/types/contracts' #2697

Closed
metaver5o opened this issue Oct 26, 2023 · 1 comment · Fixed by #2700
Closed

build/run error: Cannot find module '@/types/contracts' #2697

metaver5o opened this issue Oct 26, 2023 · 1 comment · Fixed by #2700
Labels
bug Something isn't working

Comments

@metaver5o
Copy link

metaver5o commented Oct 26, 2023

Bug description

when running the docker-compose, we get the following error:

image

indeed missing files are set on .gitignore

image

wanted to understand if is that possible to get the missing libs in order to run this project
or how to possibly overcome this setup issue
thanks

Environment

docker and docker-compose on osx

Steps to reproduce

  1. git clone
  2. set env file
  3. docker-compose up
  4. ui service crashes, in the logs you get my screenshot

Expected result

  1. git clone
  2. set env file
  3. docker-compose up
  4. voila! working

Obtained result

./src/components/tx/ApprovalEditor/utils/approvals.ts:1:32
Type error: Cannot find module '@/types/contracts' or its corresponding type declarations.

> 1 | import { ERC20__factory } from '@/types/contracts'
    |                                ^
  2 | import { UNLIMITED_APPROVAL_AMOUNT } from '@/utils/tokens'
  3 | import type { BaseTransaction } from '@safe-global/safe-apps-sdk'
  4 | import type { DecodedDataResponse, TokenInfo } from '@safe-global/safe-gateway-typescript-sdk'
@metaver5o metaver5o added the bug Something isn't working label Oct 26, 2023
@katspaugh
Copy link
Member

It should be fixed now, please check the latest dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants