Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@aws-amplify/ui-react doesn't transpile ES6 to ES5 #5322

Closed
ericclemmons opened this issue Apr 7, 2020 · 2 comments · Fixed by #5324
Closed

@aws-amplify/ui-react doesn't transpile ES6 to ES5 #5322

ericclemmons opened this issue Apr 7, 2020 · 2 comments · Fixed by #5324
Assignees
Labels
bug Something isn't working React React related issues SSR Issues related to Server Side Rendering UI Related to UI Components

Comments

@ericclemmons
Copy link
Contributor

Describe the bug

Originally discovered by @sawyerh: #5282 (comment)

When using @aws-amplify/ui-react in a Next.js project, I get:

node_modules/@aws-amplify/ui-react/dist/index.js:1
export * from './components'
^^^^^^

SyntaxError: Unexpected token 'export'

To Reproduce
Steps to reproduce the behavior:

  1. yarn create next-app

  2. Update pages/index.tsx with:

     import { withAuthenticator } from '@aws-amplify/ui-react'
  3. http://localhost:3000/

Expected behavior

Work like aws-amplify-react does.

Screenshots

Screen Shot 2020-04-07 at 3 01 57 PM

Environment
  System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
    Memory: 234.59 MB / 16.00 GB
    Shell: 5.7.1 - /usr/local/bin/zsh
  Binaries:
    Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node
    Yarn: 1.22.0 - /usr/local/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 80.0.3987.149
    Firefox: 68.6.0
    Safari: 13.1
  npmPackages:
    @aws-amplify/ui-react: unstable => 0.2.2-unstable.3+bb17bcb83
    @types/node: ^13.9.1 => 13.11.0
    @types/react: ^16.9.23 => 16.9.32
    aws-amplify: unstable => 3.0.7-unstable.3+bb17bcb83
    next: latest => 9.3.4
    react: latest => 16.13.1
    react-dom: latest => 16.13.1
    typescript: ^3.8.3 => 3.8.3
  npmGlobalPackages:
    @aws-amplify/cli: 4.13.3
    create-react-app: 3.1.1
    npm: 6.9.0
    pure-prompt: 1.10.3

@ericclemmons ericclemmons added to-be-reproduced Used in order for Amplify to reproduce said issue Amplify UI Components bug Something isn't working React React related issues SSR Issues related to Server Side Rendering and removed to-be-reproduced Used in order for Amplify to reproduce said issue labels Apr 7, 2020
@ericclemmons ericclemmons added this to the Support SSR (Auth + API) milestone Apr 7, 2020
@ericclemmons ericclemmons self-assigned this Apr 7, 2020
@ericclemmons
Copy link
Contributor Author

Potential solution: #5282 (comment)

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working React React related issues SSR Issues related to Server Side Rendering UI Related to UI Components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants