Ad
  • Custom User Avatar

    Please consider revising the instructions to reflect the actual intent of the problem.

  • Custom User Avatar

    this was almost a great 7kyu, but the double-spaced words ruined it.

  • Custom User Avatar

    Derp, thanks!

    I've seen the unterminted error before though, so I'm not sure why that didn't show up.

  • Custom User Avatar

    Your JSX is unterminated. Try <input/>.

    I agree that the error is useless.

  • Custom User Avatar

    I've been going through some of the ReactJS Katas here on codewars and have run into several lack-luster errors about syntax, but I think this is different:

    /runner/node_modules/babel-core/lib/transformation/file/index.js:590
          throw err;
          ^
    
    SyntaxError: /home/codewarrior/index.js: Unexpected token (20:4)
      18 | 
      19 |   ;(function() {
    > 20 |     var Test = global.Test, describe = global.describe, it = global.it, before = global.before, after = global.after;
         |     ^
      21 |     const { shallow } = require("enzyme");
      22 | 
      23 | let passedBeastName = "Leprechaun";
        at Parser.pp$5.raise (/runner/node_modules/babylon/lib/index.js:4454:13)
        at Parser.pp.unexpected (/runner/node_modules/babylon/lib/index.js:1761:8)
        at Parser.pp$3.parseExprAtom (/runner/node_modules/babylon/lib/index.js:3750:12)
        at Parser.parseExprAtom (/runner/node_modules/babylon/lib/index.js:7238:22)
        at Parser.pp$3.parseExprSubscripts (/runner/node_modules/babylon/lib/index.js:3494:19)
        at Parser.pp$3.parseMaybeUnary (/runner/node_modules/babylon/lib/index.js:3474:19)
        at Parser.pp$3.parseExprOps (/runner/node_modules/babylon/lib/index.js:3404:19)
        at Parser.pp$3.parseMaybeConditional (/runner/node_modules/babylon/lib/index.js:3381:19)
        at Parser.pp$3.parseMaybeAssign (/runner/node_modules/babylon/lib/index.js:3344:19)
        at Parser.parseMaybeAssign (/runner/node_modules/babylon/lib/index.js:6474:20)
    
    const React = require("react");
    
    class Beast extends React.Component{
      constructor(props) {
        super(props)
        this.state = { name: '' }
      }
    
      render() {
        return(
          <input>
        );
      }
    }
    

    This is a pretty sparse component, so I'm not sure why it has caused this error, nor do I have any idea what the error is talking about.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution