We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Originally discovered by @sawyerh: #5282 (comment)
When using @aws-amplify/ui-react in a Next.js project, I get:
@aws-amplify/ui-react
node_modules/@aws-amplify/ui-react/dist/index.js:1 export * from './components' ^^^^^^ SyntaxError: Unexpected token 'export'
To Reproduce Steps to reproduce the behavior:
yarn create next-app
Update pages/index.tsx with:
pages/index.tsx
import { withAuthenticator } from '@aws-amplify/ui-react'
http://localhost:3000/
Expected behavior
Work like aws-amplify-react does.
aws-amplify-react
Screenshots
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
The text was updated successfully, but these errors were encountered:
Potential solution: #5282 (comment)
Sorry, something went wrong.
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.
*-help
ericclemmons
Successfully merging a pull request may close this issue.
Describe the bug
Originally discovered by @sawyerh: #5282 (comment)
When using
@aws-amplify/ui-react
in a Next.js project, I get:To Reproduce
Steps to reproduce the behavior:
yarn create next-app
Update
pages/index.tsx
with:http://localhost:3000/
Expected behavior
Work like
aws-amplify-react
does.Screenshots
Environment
The text was updated successfully, but these errors were encountered: