Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: use picosanity instead of sanity client package #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

angelinekwan
Copy link

@angelinekwan angelinekwan commented Apr 3, 2022

Live reload works without any code modification. Might need to restart mac if a previous remix is running - seems to be a ws issue in remix that will be fixed soon.

However after a few updates it will return the same error.
TypeError: Cannot read property 'objectMode' of undefined at DestroyableTransform.Writable.write (/XXX/remix-livereload-bug/node_modules/readable-stream/lib/_stream_writable.js:317:22) at IncomingMessage.ondata (internal/streams/readable.js:719:22) at IncomingMessage.emit (events.js:315:20) at IncomingMessage.EventEmitter.emit (domain.js:467:12) at IncomingMessage.Readable.read (internal/streams/readable.js:519:10) at flow (internal/streams/readable.js:992:34) at resume_ (internal/streams/readable.js:973:3) at processTicksAndRejections (internal/process/task_queues.js:80:21)

Instead of using @sanity/client, tried using picosanity package to return sanity dataset and live reload works without build error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant