You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find any related topics or bug reports about this issue.
I've got a very simple setup where I got the route subject.$subjectId.tsx looks like this
and the component located at app/components/LessonDisplay.tsx
exportasyncfunctionloader(){returnjson({any: "thing"});}// export async function loader() {// return new Response(JSON.stringify({ any: "thing" }))// }exportdefaultfunctionLessonDisplay(){return(<></>);}
On Dev server, if I access the page through the url I get
util.js:109 Uncaught ReferenceError: process is not defined
at node_modules/util/util.js (util.js:109:1)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/stream-slice/index.js (index.js:2:12)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/@remix-run/node/dist/upload/fileUploadHandler.js (fileUploadHandler.js:23:19)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/@remix-run/node/dist/index.js (index.js:17:25)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at index.js:99:2
If I try to use Link component on that route, the root page just refreshes and it doesn't even let me visit the subject.$subjectId.tsx route.
I don't see this problem when using JSON.stringify. So for example this code just works fine.
//export async function loader() {//return json({any: "thing"});//}exportasyncfunctionloader(){returnnewResponse(JSON.stringify({any: "thing"}))}exportdefaultfunctionLessonDisplay(){return(<></>);}
This happens only on dev. If I build and start it all works just fine
System Info
Windows 11, any browser, latest Remix
Used Package Manager
npm
Expected Behavior
I would not expect to get this error
Actual Behavior
See the reproduction notes
The text was updated successfully, but these errors were encountered:
I'm getting same thing, doesn't look like it breaks anything though in my case..
doing json return in an action which is not being called upon page load, I think that's why my case is not breaking
Reproduction
I couldn't find any related topics or bug reports about this issue.
I've got a very simple setup where I got the route
subject.$subjectId.tsx
looks like thisand the component located at
app/components/LessonDisplay.tsx
On Dev server, if I access the page through the url I get
util.js:109 Uncaught ReferenceError: process is not defined
at node_modules/util/util.js (util.js:109:1)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/stream-slice/index.js (index.js:2:12)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/@remix-run/node/dist/upload/fileUploadHandler.js (fileUploadHandler.js:23:19)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at node_modules/@remix-run/node/dist/index.js (index.js:17:25)
at __require (chunk-QGSYD46Z.js?v=96f51caf:12:50)
at index.js:99:2
If I try to use Link component on that route, the root page just refreshes and it doesn't even let me visit the
subject.$subjectId.tsx
route.I don't see this problem when using
JSON.stringify
. So for example this code just works fine.This happens only on dev. If I build and start it all works just fine
System Info
Used Package Manager
npm
Expected Behavior
I would not expect to get this error
Actual Behavior
See the reproduction notes
The text was updated successfully, but these errors were encountered: