remix-run / grunge-stack

The Remix Stack for deploying to AWS with DynamoDB, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
434 stars 95 forks source link

Updating grunge-stack to lastest versions #185

Closed jarimustonen closed 1 month ago

jarimustonen commented 8 months ago

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

As the software evolves, the stack should be such that is could be updated to latest version. To this end, I suggest that grunge-stack is updated to latest versions.

I have tried this manually and was able to fix a few errors:

  1. A few packages must be added explicitly (@smithy/node-http-handler, @aws-sdk/lib-dynamodb, and @aws-sdk/client-dynamodb)
  2. isbot should be retained at the version 3.8.0 due to breaking changes in the version 4.0.0
  3. remix.config.js must be added the following configuration: browserNodeBuiltinsPolyfill: { modules: { querystring: true } }

Finally there is also an error related to cypress tests. The tests fail with:

Lambda init error: The requested module 'msw' does not provide an export named 'rest'
http://localhost:8811 timed out on retry 9 of 3, elapsed 95619ms, limit 90000ms
Error: Response code 500 (Internal Server Error)

I'm at lost here and really do not know what to do with this. If someone can help with this one, I could make pull request. Or maybe the Remix team would like to update the stack..

Expected Behavior

N/A

Actual Behavior

N/A

McNouvion commented 8 months ago

I also ran in the cypress issue when it ran via the github action .... I got around it by updating mocks/index.js and replacing 'rest' with 'http'.

import { http } from "msw";
...  
http.post(`...

You will also need to update msw to the latest version. I have v2.1.5 right now ...

gustavorino commented 7 months ago

Any chance this project will be updated to use the vite version? is there anyone working on this?

quantuminformation commented 7 months ago

its a template, you are free to upgrade it yourself and sumbit a PR

gustavorino commented 7 months ago

its a template, you are free to upgrade it yourself and sumbit a PR

This is exactly why I asked, I am considering updating it, but won't do it if, lets say, someone else is already working on it.

quantuminformation commented 4 months ago

I think everyone is happy paying the bills with esbuild

but esbuild is becoming a drag so I'm getting closer to trying vite again by myself

davisg123 commented 1 month ago

@gustavorino I have the build working here if you want to help https://github.com/davisg123/grunge-stack/tree/vite

I've been unable to figure out how to run the architect sandbox along with vite:dev. There is some discussion about it https://github.com/remix-run/remix/discussions/8836 but I haven't figured out what the run dev command needs to be

MichaelDeBoey commented 1 month ago

Closed by #186