Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
This repository was archived by the owner on Feb 28, 2018. It is now read-only.

Node should use compiled version  #30

@sedenardi

Description

@sedenardi

When I load this to be rendered server-side in node I get:

node_modules/react-ux-password-field/src/index.js:229
      infoBar = <div className="passwordField__info" style={this.infoStyle}>
                ^
SyntaxError: Unexpected token <

This is because I have babel setup to only transpile .jsx files. The issue is solved if I change package.json to point to the compiled ./lib/react-ux-password-field.js instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions