Module not found: Can't resolve '@project/contracts'
See original GitHub issueThank 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:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the info! Will investigate further.
@refex does it work if you
cd
into thepackages/react-app
and then runyarn start
?