question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Can't resolve '@project/contracts'

See original GitHub issue

Thank you for awesome repo!

ran yarn react-app:start and it gave me

Module not found: Can’t resolve ‘@project/contracts’ in ‘C:\Users\sejong\Desktop\etc\Dapp\my-eth-app\packages\react-app\src’

Seems like import statement import { addresses, abis } from "@project/contracts"; in App.js doesn’t not recognize files in contracts folder.

Researched a bit, and says there’s import restriction outside of src directory.

Not sure if it works for others 😦

I’m using windows 10 vs code node.js version 12

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
paulrbergcommented, Mar 22, 2021

Thanks for the info! Will investigate further.

0reactions
paulrbergcommented, May 22, 2022

@refex does it work if you cd into the packages/react-app and then run yarn start?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve Module not found Error Can t resolve truffle ...
I am trying to work on truffle-contract and web3 but I am facing problem when I execute the npm run dev command. The...
Read more >
BarryHewitt - GitHub
Module not found : Can't resolve '../artifacts/contracts/Market.sol/NFTMarket.json'. The tutorial I'm following can be found here, and so can the entire code ...
Read more >
How to fix error "Module not found: Error: Can't resolve 'url ...
1 Answer 1 · npm install -d url · Add entry in tsconfig.json file - "paths":{"url": ["./node_modules/url"]} · try adding all the pending...
Read more >
4 - Ethereum Stack Exchange
Module not found : Can't resolve './contracts/SimpleStorage.json' · Ask Question. Asked 4 years, 3 months ago. Modified 4 years ago.
Read more >
Can't resolve 'truffle-contract'” error in web3? - Intellipaat
To solve the Module Not found Error you can try compiling and migrating the contract using the following command: $ truffle compile.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found