Comments (8)
I've been using remix for a while now, and the Buffer is not defined
issue has been there since the unstable_*
multipart feature. Curiously, the unstable_parseMultipartFormData
, which relies on busboy
(calling Buffer
) is bundled in the client dist while not being used at all in the routes, so something must be wrong in the esbuild
config.
from grunge-stack.
What's weird is that unstable_createMemoryUploadHandler
is bundled when unstable_createFileUploadHandlerfrom
is not, so that could be a clue.
from grunge-stack.
Yeah, it's weird because I literally just cloned and installed the dependencies. And then I run the tests and they don't work
from grunge-stack.
Just dug into it. What I've found is that a simple rm -rf public/build && npm run build:remix
seems to clear the issue, as the client bundle seems clean after that, so I wonder if it's not the remix-init
of the stack that's doing something differently. Trying to confirm that for now.
from grunge-stack.
As said earlier, the problem has been there since the introduction of the multipart feature (don't know why I've said it could be the remix-init
of the stack 🤭 ). I've tried on a baremetal install (architect+typescript), and the issue occurs between the remix watch
and the remix build
:
remix build
-> client bundle is cleanremix watch
-> client bundle has occurrences ofunstable_createMemoryUploadHandler
from grunge-stack.
Ah! Ah! It's actually normal to have occurrences of unstable_createMemoryUploadHandler
in the baremetal build folder, as it's due to the source map generation (didn't see the file extension 😱 ). So the client warning could actually be due to the stack setup, as I do have an occurence in a generated js chunk using remix watch
and not remix build
using the grunge stack.
from grunge-stack.
I think I've got something now. Commenting the routes
entry in the remix.config.js
provides a clean browser build. It makes sense as the cypress/support/test-routes/create-user.ts
is included via the routes
attribute only when process.env.NODE_ENV
is not production
. So my first guess is that routes included via the routes
entry are not pruned (or tree shaken) properly, and remix is fully loaded inside (routes
entry commented, the chunk is only 176K
while not commented, the chunk weighs 1.1M
).
from grunge-stack.
Thanks you very much @salper for the reply!
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 HOT 1
- Installation fails HOT 1
- Updating grunge-stack to lastest versions HOT 5
- Migrate to use Remix Vite HOT 1
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.