From b08b0fcbfaa316e4b3b6a36ef5b8d6f9d9f953ab Mon Sep 17 00:00:00 2001 From: Eric Clemmons Date: Wed, 18 Mar 2020 13:00:46 -0700 Subject: [PATCH] Remove "import '@aws-amplify/ui/dist/style.css'", as it's not valid Importing non-JS files relies on a bundler & breaks SSR. It works with CRA because CRA *builds all dependencies*, just-in-case. --- .../src/Amplify-UI/Amplify-UI-Components-React.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/aws-amplify-react/src/Amplify-UI/Amplify-UI-Components-React.tsx b/packages/aws-amplify-react/src/Amplify-UI/Amplify-UI-Components-React.tsx index 051ca8603db..0211752d999 100644 --- a/packages/aws-amplify-react/src/Amplify-UI/Amplify-UI-Components-React.tsx +++ b/packages/aws-amplify-react/src/Amplify-UI/Amplify-UI-Components-React.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import { objectLessAttributes } from '@aws-amplify/core'; -import '@aws-amplify/ui/dist/style.css'; import * as AmplifyUI from '@aws-amplify/ui'; import AmplifyTheme from './Amplify-UI-Theme';