Skip to content

Not working in a node context #29

@eivindml

Description

@eivindml

I have a server action using react-pdf to generate a pdf. It works as intended. As soon as I add <PortableText /> from @portabletext/react-pdf it breaks. With the following error:

[TypeError: Cannot read properties of null (reading 'useMemo')] {
                 │  componentStack: '\n' +
                 │    '    at PortableText (/Users/eivindml/Developer/elsjekken/node_modules/.pnpm/@[email protected][email protected]/node_modules/@portabletext/react/src/react-portable-text.tsx:43:10)\n' +
                 │    '    at PortableText (/Users/eivindml/Developer/elsjekken/node_modules/.pnpm/@[email protected]/node_modules/@portabletext/react-pdf/src/pdf-portabletext.tsx:65:10)\n' +
                 │    '    at VIEW (<anonymous>)\n' +
                 │    '    at VIEW (<anonymous>)\n' +
                 │    '    at VIEW (<anonymous>)\n' +
                 │    '    at PAGE (<anonymous>)\n' +
                 │    '    at DOCUMENT (<anonymous>)'
                 │}
                 │Failed to send email: TypeError: Cannot read properties of null (reading 'props')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions