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

Unable to build when using aws-amplify-react #1111

Closed
HazemMhiri opened this issue Oct 1, 2019 · 3 comments
Closed

Unable to build when using aws-amplify-react #1111

HazemMhiri opened this issue Oct 1, 2019 · 3 comments

Comments

@HazemMhiri
Copy link

HazemMhiri commented Oct 1, 2019

Expected Behavior

I expect my app to build both in dev and in production.

Current Behavior

Build fails with both razzle start and razzle build.

Steps to Reproduce

  1. install and import aws-amplify-react

Detailed Description

Here is the error trace:

PROJECT_DIR/node_modules/@aws-amplify/ui/dist/style.css:13
:root {
^

SyntaxError: Unexpected token :
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (PROJECT_DIR/node_modules/aws-amplify-react/src/Amplify-UI/Amplify-UI-Components-React.jsx:5:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
@stale stale bot added the stale label Nov 30, 2019
@tiagobbraga
Copy link

tiagobbraga commented Mar 3, 2020

The same

@nimaa77
Copy link
Collaborator

nimaa77 commented Mar 17, 2020

I saw the same issue in #1070, can anyone create a sample repo for this. so we can find and fix the problem easier?

@nimaa77
Copy link
Collaborator

nimaa77 commented Mar 17, 2020

let's move all conversations to that issue so we have everything in one place.

I'm going to close this.

@nimaa77 nimaa77 closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants