patrick91 / Styled-Components-Typescript-Example

Sample "app" using typescript and styled components.
104 stars 27 forks source link

Missing babel presets #8

Closed DavidHenri008 closed 6 years ago

DavidHenri008 commented 6 years ago

The latest released version seems to be missing some dependencies related to the babel presets. In order to make it work I had to change the .babelrc file to

{
    "presets": [
        "babel-preset-env",
        "react"
     ]
}

And also install the babel-preset-react package. I think it is related to the parcel-bundler version.

patrick91 commented 6 years ago

@DavidHenri008 do you get any error when not using those presets?

DavidHenri008 commented 6 years ago

If I remove the preset it works.

David Henri

On Sat, Sep 22, 2018, 04:58 Patrick Arminio notifications@github.com wrote:

@DavidHenri008 https://github.com/DavidHenri008 do you get any error when not using those presets?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/patrick91/Styled-Components-Typescript-Example/issues/8#issuecomment-423728824, or mute the thread https://github.com/notifications/unsubscribe-auth/Aflr5lRFQghz0a-mozVAzQbbN71aD2lXks5udfvMgaJpZM4W0nkW .

patrick91 commented 6 years ago

@DavidHenri008 fixed :)