Skip to content

.jsx extension  #287

Closed
Closed

Description

@pungggi

Note from Maintainers

We support JSX extension since 0.4.1 even though we don’t recommend it.
Read the release notes.


I changed the App.js in App.jsx and get this

> Failed to compile.

Error in ./src/App.jsx
Module parse failed: c:\Users\Alessandro\Dev\ciqooo\src\App.jsx Unexpected token (8:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (8:6)
 @ ./src/index.js 11:11-31

I d like to see if it is a 'real' javascript' or JSX
in addition when coding in .jsx i get more support from my editor (Visual studio code)
for emmet.

Activity

  1. changed the title [-].jsx extenstion [/-] [+].jsx extension [/+] on Jul 29, 2016
  2. alexzherdev commented on Jul 29, 2016

    @alexzherdev
    Contributor

    Was discussed in #87

  3. gaearon commented on Jul 29, 2016

    @gaearon
    Contributor

    Let’s keep open until I figure out what Emmet is and how it’s used in VS Code. 😄
    If there’s no way to configure it to activate in .js files I guess we’ll have to give in.

  4. pungggi commented on Jul 29, 2016

    @pungggi
    Author

    I closed..found this http://stackoverflow.com/a/37592711/343112

    what Emmet is

    see http://docs.emmet.io/

    in html files (or in jsx) you type for example:
    p>ul>li*4

    emmet will transform to

    <p> <ul> <li></li> <li></li> <li></li> <li></li> </ul> </p>

  5. gaearon commented on Jul 29, 2016

    @gaearon
    Contributor

    Ah, great to know. I’ll open another issue to warn users about JSX.

  6. gaearon commented on Sep 3, 2016

    @gaearon
    Contributor

    FYI we support JSX extension since 0.4.1 even though we don’t recommend it.
    Read the release notes.

  7. locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions