Comments (7)
Nice, do you run Coffee docker from same folder as your FE code?
docker run --pull=always -it -e OPENAI_API_KEY=${OPENAI_API_KEY} -v $(pwd):/mount coframe/coffee:latest
In this command -v $(pwd):/mount
is mirroring all files from current folder $(pwd)
to /mount
folder in docker.
I'll add check that /mount
is not empty on startup.
from coffee.
Scratch that, something else is an issue. What is filename of file you edit and OS you are using?
from coffee.
Yes, same directory. I'm on MacOS Monterey, M1 Chip. Filename is src/app/components/destinations.tsx
from coffee.
Have same issue on windows - it doesn't recognize the coffee component.
on windows(inside the app dir):
docker run --pull=always -it -e OPENAI_API_KEY="xxxx" -v "${PWD}:/mount" coframe/coffee:latest
@petersolimine great thanks for opensourcing!!
from coffee.
Same issue here on Windows. The coffee component isn't recognized despite running docker in the same directory.
from coffee.
ssue could be related to permissions or the location of the Compose binary.Here are a few steps you can take to troubleshoot this issue:
- which docker-compose; this should return the path to the Docker Compose binary. Make sure that this path is included in your system's PATH environment variable.
- ls -l $(which docker-compose)
- sudo chmod +x $(which docker-compose)
- docker-compose --version
- sudo chmod +x $(which docker-compose)
- docker-compose --version
Check for any conflicting Docker installations: Make sure that there are no other Docker installations on your system that could be conflicting with Docker Desktop. If there are, you may need to uninstall them before reinstalling Docker Desktop.
from coffee.
I am having the same issue using Windows. I have run into similar issues before with file watching inside a container and it seems that that is a known issue. See https://stackoverflow.com/a/70686685
I tried using docker-volume-watcher
but didn't help as the bind was skipped since it has invalid source path.
I tried using the PollingObserver
but that didn't work for me either, probably my lack of Python skills.
One thing I did notice, With the PollingObserver
it would list the files/folders in the root of my Next.js target project
While with the Observer
it didn't
When I run py .\main.py
on my Windows machine it works just fine with a small issue of always duplicating the import Coffee from './components/Coffee';
line.
from coffee.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coffee.