No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
[Dockerfile] Module not found error after containers are up
marketprotocol
JavaScript, Dockerfile, Truffle, Ethereum, React
### User Story
[comment]: # (As a , I want to so that .)
As a developer, I want to develop dApp in docker environment so that I can have isolate dev environment on my local machine.
### Why Is this Needed?
[comment]: # (Describe the problem and why this task is needed. Provide the description of the current state, what you would like to happen, and what actually happen)
*Summary*: An Isolated dev environment will keep the local machine clean for multiple projects. Also, docker-compose makes developers easy to start running dApp.
### Description
[comment]: # (Feature or Bug? i.e Type: Bug)
*Type*: Bug
### Current Behavior
[comment]: # (Describe what actually happened.)
After running up cmd:
```
β― docker-compose up -d
```
will successfully start containers
```
β― docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------------------
dapp_app_1 /bin/sh -c npm start Up 0.0.0.0:3000->3000/tcp
dapp_eth-bridge_1 node bridge -H truffle:954 ... Up
dapp_truffle_1 truffle develop Up 3000/tcp, 0.0.0.0:9545->9545/tcp
```
But when going to
```
http://localhost:3000
```
There are 'Module not found' errors in the browser:
```
./src/Contracts.js
Module not found: Can't resolve '../build/contracts/InitialAllocationCollateralToken' in '/app/src'
```
Seems some files need to be copied into `/build` folder.
### Expected Behavior
[comment]: # (Describe what you expected to happen.)
Module links should be resolved.
### Reproduction
[comment]: # (Describe how we can replicate the bug step by step.)
1. Run up cmd:
```
docker-compose up -d
```
2. go to
```
http://localhost:3000
```
### Solution
[comment]: # (Provide a summary of the solution and a task list on what needs to be fixed.)
*Summary*: Might need to update and have separate Dockerfile for dApp and truffle.
### Definition of Done
[comment]: # (Any other information that would be useful, bullets are helpful.)
- [ ] Developer should be able to run up cmd and just work
### Additional Information
[comment]: # (Any other information that would be useful, content, screenshots, etc.)
I am currently debugging this issue. Any suggestions or hints are appreciated!
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
Setup your profile
Our tools are based on the principles of earn (π°), learn (π), and meet (π¬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Back
Next
Save
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email:
Email
Back
Save