Comments (7)
Is the issue with Architect running functions in a new process also the reason why I can't seem to get VS Code debugging working with the routes in the Grunge Stack?
Used a debugger;
statement in a standard remix app and works like a charm, but in Grunge, no joy 😂
from grunge-stack.
any luck trying to make debugger work in grunge stack @eXigentCoder?
from grunge-stack.
Ah, that's a bummer. I tested it in the other stacks but not this one. We may need to be a bit more invasive by requiring the mocks in app code 😬
@tbeseda can you confirm that this will run in a different node process from the app? If so, we may need to move that require into app/entry.server.ts
during development.
Would be better if there were a way to do a --require
sort of thing with arc directly so we don't have to put it in app code.
from grunge-stack.
Yeah, I'm playing around with running msw in server.ts and it seems to work okay.
from grunge-stack.
Can confirm it does work if you start the server in app/entry.server.ts
but it feels like it really slows every request down quite a bit. Also saw some issues with a 3rd party library that was using axios to post.
from grunge-stack.
Correct, Architect will run each function execution in a new process. It does use the same environment from the root project/package.json, but doesn't inherit from the parent process. This behavior is important to emulating how Lambda will run the function in isolation on AWS.
Obviously msw
is really helpful for mocking APIs that a function would interact with, but I'm not sure how it could be wrapped around a function in Sandbox. A plugin might help, but I think no matter what it has to be started each time a request is made since there are no long running processes.
from grunge-stack.
I am also facing challenges to debug in grunge stack. Anyonbe knows of some advices to make it work?
from grunge-stack.
Related Issues (20)
- LiveReload does not work HOT 1
- Starting project is throwing Error [ERR_PACKAGE_PATH_NOT_EXPORTED] error HOT 2
- "Lambda handler not found" error due to change in `@architect/architect` v10.6.0 HOT 4
- Setup fails HOT 2
- 🚀 Fresh Stack Deployment Not Working As Expected HOT 2
- Loading notes locally takes 900ms in grunge stack compared to 30ms in indie HOT 1
- remix defer is malfunctioning by awaiting and blocking responses HOT 4
- Fresh unaltered template will not deploy with Github Actions HOT 2
- Cypress smoke test fails with newly initialized project HOT 1
- @prisma/client did not initialize yet HOT 1
- Fresh deployment leads to Internal Server Error HOT 1
- Error occurs after fresh installation HOT 1
- notes example app is slow
- 401 Unauthorized at localhost. Clerk error integration HOT 10
- remix grunge stack aws HOT 4
- NPM Fails to Install dependencies HOT 3
- Logout route is not destroying the user session
- Installation fails HOT 1
- Updating grunge-stack to lastest versions HOT 5
- Replace `run-p` with `npm-run-all -p-` because the former doesn't kill all process when pressing CTRL+C in windows HOT 6
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 grunge-stack.