Skip to content

react-email does not support cjs #3413

@paulwer

Description

@paulwer

What versions are you using? (if relevant)

@react-email/components@x.y.z, react-email@x.y.z, etc.

Describe the Bug

Hello everyone,
we did the upgrade from @react-email/components to use react-email instead as described in the release notes.

As we are using common-js for building this failed at build stage afterwards, because the lib does not support it

Old lib had supported it.

Are there plans to reintroduce common-js again?

What is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

To Reproduce

{
  "compilerOptions": {
    "module": "commonjs",
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "es2019",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "skipLibCheck": true,
    "strictNullChecks": false,
    "noImplicitAny": false,
    "strictBindCallApply": false,
    "forceConsistentCasingInFileNames": false,
    "noFallthroughCasesInSwitch": false,
    "resolveJsonModule": true,
    "jsx": "react-jsx"
  }
}

Expected Behavior

Support common-js

What's your node version? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions