Skip to content

Can not load JSX files via custom .babelrc configuartion #3598

@S-Cardenas

Description

@S-Cardenas

I am trying to use the .jsx file type and have created a custom .babelrc file as per the documentation (see below).

{
  "plugins": [
    ["transform-react-jsx", {
      "extensions": [".jsx"]
    }]
  ],
  "presets": [
    "next/babel"
  ]
}

However with the above .babelrc file I receive the following error:

screen shot 2018-01-20 at 2 11 24 pm

Can someone point me in the direction as to what I am doing wrong to get .jsx files to load properly?

Cheers,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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