Mitchell Heddles

Results 15 comments of Mitchell Heddles

@ChildishForces I had the same issue, but was able to fix it by defining a custom `Editor`. Check out the typescript docs https://github.com/ianstormtaylor/slate/blob/main/docs/concepts/11-typescript.md#defining-editor-element-and-text-types

@travigd Can you use a dynamic import instead? ```ts export async function getServerSideProps() { const crypto = await import('crypto'); } ```

I came across this issue recently and was able to get most things working like this: ```js export function handler(req, res) { // It might not be required for everybody,...

@jeremydaly if you're okay with this approach I can update the unit test assertions

> @mitchheddles thanks for the PR, you're awesome! > > I think that this approach is a bit problematic, debugging wise. I'll need to give this more thought. Are you...

@naorpeled what if this was a configuration option that’s off by default? People can opt into it. Alternatively, we might need custom error handling so we can show more detailed...

@naorpeled please let me know what you decide, I’m keen to keep this one moving

> > @naorpeled please let me know what you decide, I’m keen to keep this one moving > > Haven't received a reply yet, will keep you posted ❤️ >...

Thanks for the quick reply, I edited my post a couple of times so it may have changed since. > As far as I know, you can re-throw (different) errors...

The client component is the one calling `useSuspenseQuery` ```ts 'use client'; function CardEditorImpl() { cons res = useSuspenseQuery(etc.); return Mitch } export function CardEditor(props: CardEditorProps) { return ( ); }...