aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.42k stars 2.13k forks source link

Cannot find file './styles/App.scss' in './src' #8449

Closed paullam328 closed 3 years ago

paullam328 commented 3 years ago

Before opening, please confirm:

JavaScript Framework

React

Amplify APIs

Authentication, GraphQL API, Storage

Amplify Categories

Not applicable

Environment information

``` # Put output below this line System: OS: macOS 11.3 CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz Memory: 67.13 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 14.15.5 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.11 - /usr/local/bin/npm Browsers: Chrome: 91.0.4472.101 Firefox: 87.0 Safari: 14.1 Safari Technology Preview: 14.2 npmPackages: @fortawesome/fontawesome-svg-core: ^1.2.35 => 1.2.35 @fortawesome/free-regular-svg-icons: ^5.15.3 => 5.15.3 @fortawesome/free-solid-svg-icons: ^5.15.3 => 5.15.3 @fortawesome/react-fontawesome: ^0.1.14 => 0.1.14 @material-ui/core: ^4.11.4 => 4.11.4 @testing-library/jest-dom: ^5.11.4 => 5.12.0 @testing-library/react: ^11.1.0 => 11.2.7 @testing-library/user-event: ^12.1.10 => 12.8.3 @types/image-to-base64: ^2.1.0 => 2.1.0 @types/jest: ^26.0.23 => 26.0.23 @types/node: ^15.3.1 => 15.3.1 @types/object-mapper: ^6.2.0 => 6.2.0 @types/react: ^17.0.6 => 17.0.6 @types/react-dom: ^17.0.5 => 17.0.5 @types/react-router-dom: ^5.1.7 => 5.1.7 @types/uuid: ^8.3.0 => 8.3.0 aws-amplify: ^4.0.2 => 4.0.2 aws-amplify-react: ^5.0.0 => 5.0.0 aws-appsync: ^4.0.3 => 4.0.3 aws-sdk: ^2.926.0 => 2.926.0 bootstrap: ^4.6.0 => 4.6.0 immutability-helper: ^3.1.1 => 3.1.1 js-sha256: ^0.9.0 => 0.9.0 node-sass: ^5.0.0 => 5.0.0 object-mapper: ^6.2.0 => 6.2.0 react: ^17.0.2 => 17.0.2 react-bootstrap: ^1.6.0 => 1.6.0 react-bootstrap-validation: ^0.1.11 => 0.1.11 react-bootstrap/AbstractNav: undefined () react-bootstrap/AbstractNavItem: undefined () react-bootstrap/Accordion: undefined () react-bootstrap/AccordionCollapse: undefined () react-bootstrap/AccordionContext: undefined () react-bootstrap/AccordionToggle: undefined () react-bootstrap/Alert: undefined () react-bootstrap/Badge: undefined () react-bootstrap/BootstrapModalManager: undefined () react-bootstrap/Breadcrumb: undefined () react-bootstrap/BreadcrumbItem: undefined () react-bootstrap/Button: undefined () react-bootstrap/ButtonGroup: undefined () react-bootstrap/ButtonToolbar: undefined () react-bootstrap/Card: undefined () react-bootstrap/CardColumns: undefined () react-bootstrap/CardContext: undefined () react-bootstrap/CardDeck: undefined () react-bootstrap/CardGroup: undefined () react-bootstrap/CardImg: undefined () react-bootstrap/Carousel: undefined () react-bootstrap/CarouselCaption: undefined () react-bootstrap/CarouselItem: undefined () react-bootstrap/CloseButton: undefined () react-bootstrap/Col: undefined () react-bootstrap/Collapse: undefined () react-bootstrap/Container: undefined () react-bootstrap/Dropdown: undefined () react-bootstrap/DropdownButton: undefined () react-bootstrap/DropdownItem: undefined () react-bootstrap/DropdownMenu: undefined () react-bootstrap/DropdownToggle: undefined () react-bootstrap/ElementChildren: undefined () react-bootstrap/Fade: undefined () react-bootstrap/Feedback: undefined () react-bootstrap/Figure: undefined () react-bootstrap/FigureCaption: undefined () react-bootstrap/FigureImage: undefined () react-bootstrap/Form: undefined () react-bootstrap/FormCheck: undefined () react-bootstrap/FormCheckInput: undefined () react-bootstrap/FormCheckLabel: undefined () react-bootstrap/FormContext: undefined () react-bootstrap/FormControl: undefined () react-bootstrap/FormFile: undefined () react-bootstrap/FormFileInput: undefined () react-bootstrap/FormFileLabel: undefined () react-bootstrap/FormGroup: undefined () react-bootstrap/FormLabel: undefined () react-bootstrap/FormText: undefined () react-bootstrap/Image: undefined () react-bootstrap/InputGroup: undefined () react-bootstrap/Jumbotron: undefined () react-bootstrap/ListGroup: undefined () react-bootstrap/ListGroupItem: undefined () react-bootstrap/Media: undefined () react-bootstrap/Modal: undefined () react-bootstrap/ModalBody: undefined () react-bootstrap/ModalContext: undefined () react-bootstrap/ModalDialog: undefined () react-bootstrap/ModalFooter: undefined () react-bootstrap/ModalHeader: undefined () react-bootstrap/ModalTitle: undefined () react-bootstrap/Nav: undefined () react-bootstrap/NavContext: undefined () react-bootstrap/NavDropdown: undefined () react-bootstrap/NavItem: undefined () react-bootstrap/NavLink: undefined () react-bootstrap/Navbar: undefined () react-bootstrap/NavbarBrand: undefined () react-bootstrap/NavbarCollapse: undefined () react-bootstrap/NavbarContext: undefined () react-bootstrap/NavbarToggle: undefined () react-bootstrap/Overlay: undefined () react-bootstrap/OverlayTrigger: undefined () react-bootstrap/PageItem: undefined () react-bootstrap/Pagination: undefined () react-bootstrap/Popover: undefined () react-bootstrap/PopoverContent: undefined () react-bootstrap/PopoverTitle: undefined () react-bootstrap/ProgressBar: undefined () react-bootstrap/ResponsiveEmbed: undefined () react-bootstrap/Row: undefined () react-bootstrap/SafeAnchor: undefined () react-bootstrap/SelectableContext: undefined () react-bootstrap/Spinner: undefined () react-bootstrap/SplitButton: undefined () react-bootstrap/Switch: undefined () react-bootstrap/Tab: undefined () react-bootstrap/TabContainer: undefined () react-bootstrap/TabContent: undefined () react-bootstrap/TabContext: undefined () react-bootstrap/TabPane: undefined () react-bootstrap/Table: undefined () react-bootstrap/Tabs: undefined () react-bootstrap/ThemeProvider: undefined () react-bootstrap/Toast: undefined () react-bootstrap/ToastBody: undefined () react-bootstrap/ToastContext: undefined () react-bootstrap/ToastHeader: undefined () react-bootstrap/ToggleButton: undefined () react-bootstrap/ToggleButtonGroup: undefined () react-bootstrap/Tooltip: undefined () react-bootstrap/createChainedFunction: undefined () react-bootstrap/createWithBsPrefix: undefined () react-bootstrap/divWithClassName: undefined () react-bootstrap/helpers: undefined () react-bootstrap/transitionEndListener: undefined () react-bootstrap/triggerBrowserReflow: undefined () react-bootstrap/types: undefined () react-bootstrap/usePopperMarginModifiers: undefined () react-bootstrap/useWrappedRefWithWarning: undefined () react-dom: ^17.0.2 => 17.0.2 react-dropzone: ^11.3.2 => 11.3.2 react-feather: ^2.0.9 => 2.0.9 react-redux: ^7.2.4 => 7.2.4 react-router: ^5.2.0 => 5.2.0 react-router-dom: ^5.2.0 => 5.2.0 react-scripts: 4.0.3 => 4.0.3 react-sortable-hoc: ^2.0.0 => 2.0.0 redux: ^4.1.0 => 4.1.0 (3.7.2) redux-devtools-extension: ^2.13.9 => 2.13.9 redux-saga: ^1.1.3 => 1.1.3 redux-saga/effects: undefined () simple-react-validator: ^1.6.0 => 1.6.0 typescript: ^4.2.4 => 4.2.4 uuid: ^8.3.2 => 8.3.2 (3.4.0, 3.3.2) web-vitals: ^1.0.1 => 1.1.2 npmGlobalPackages: @aws-amplify/cli: 4.51.1 @nestjs/cli: 7.6.0 create-react-app: 4.0.3 expo-cli: 4.1.6 node: 15.7.0 npm: 6.14.11 react-native-cli: 2.0.1 yarn: 1.22.4 ```

Describe the bug

When I deploy Frontend environment on an Amplify app, it complains about:

Cannot find file './styles/Login.scss' in './src'.

It works on npm start locally so it's supposed to work? I have node-sass v5.0.0 installed...

Logs as below:

                                # Starting phase: preBuild

                                 # Executing command: yarn install

2021-06-14T22:10:38.269Z [INFO]: yarn install v1.22.0

2021-06-14T22:10:38.352Z [WARNING]: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

2021-06-14T22:10:38.354Z [INFO]: [1/4] Resolving packages...

2021-06-14T22:10:39.634Z [WARNING]: warning aws-amplify > @aws-amplify/analytics > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:39.634Z [WARNING]: warning aws-amplify > @aws-amplify/predictions > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

                                    warning aws-amplify > @aws-amplify/datastore > uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

                                    warning aws-amplify > @aws-amplify/pubsub > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:39.666Z [WARNING]: warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-comprehend > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:39.694Z [WARNING]: warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-translate > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:39.729Z [WARNING]: warning aws-amplify > @aws-amplify/api > @aws-amplify/api-graphql > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:40.008Z [WARNING]: warning aws-amplify > @aws-amplify/analytics > @aws-sdk/client-kinesis > @aws-sdk/middleware-retry > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:41.003Z [WARNING]: warning aws-appsync > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:41.106Z [WARNING]: warning aws-appsync > aws-sdk > uuid@3.3.2: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

2021-06-14T22:10:41.395Z [WARNING]: warning node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

2021-06-14T22:10:41.908Z [WARNING]: warning react-bootstrap-validation > babel-runtime > core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

2021-06-14T22:10:43.317Z [INFO]: [2/4] Fetching packages...

2021-06-14T22:11:04.909Z [INFO]: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
                                 info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.

2021-06-14T22:11:04.915Z [INFO]: info fsevents@1.2.13: The platform "linux" is incompatible with this module.

2021-06-14T22:11:04.915Z [INFO]: info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.

2021-06-14T22:11:04.924Z [INFO]: [3/4] Linking dependencies...

2021-06-14T22:11:04.930Z [WARNING]: warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".

2021-06-14T22:11:04.930Z [WARNING]: warning "aws-amplify > @aws-amplify/analytics > @aws-sdk/client-kinesis > @aws-sdk/middleware-retry > react-native-get-random-values@1.7.0" has unmet peer dependency "react-native@>=0.56".

2021-06-14T22:11:04.930Z [WARNING]: warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/analytics@3.x.x".

                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/api@3.x.x".
                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/auth@3.x.x".
                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/core@3.x.x".
                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/interactions@3.x.x".

2021-06-14T22:11:04.930Z [WARNING]: warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/storage@3.x.x".

                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/ui@2.x.x".
                                    warning " > aws-amplify-react@5.0.2" has unmet peer dependency "@aws-amplify/xr@2.x.x".
2021-06-14T22:11:04.930Z [WARNING]: warning "aws-amplify-react > qrcode.react@0.8.0" has incorrect peer dependency "react@^15.5.3 || ^16.0.0".

                                    warning " > aws-appsync@4.0.3" has unmet peer dependency "@react-native-community/async-storage@^1.11.0".

                                    warning " > aws-appsync@4.0.3" has unmet peer dependency "@react-native-community/netinfo@^5.0.0".
2021-06-14T22:11:04.932Z [WARNING]: warning " > bootstrap@4.6.0" has unmet peer dependency "jquery@1.9.1 - 3".

2021-06-14T22:11:04.932Z [WARNING]: warning " > bootstrap@4.6.0" has unmet peer dependency "popper.js@^1.16.1".

2021-06-14T22:11:04.947Z [WARNING]: warning " > react-sortable-hoc@2.0.0" has unmet peer dependency "prop-types@^15.5.7".

2021-06-14T22:11:30.831Z [INFO]: [4/4] Building fresh packages...

2021-06-14T22:11:33.959Z [INFO]: success Saved lockfile.

2021-06-14T22:11:33.963Z [INFO]: Done in 55.70s.

2021-06-14T22:11:34.009Z [INFO]: # Completed phase: preBuild

                                 # Starting phase: build
                                 # Executing command: yarn run build
2021-06-14T22:11:34.136Z [INFO]: yarn run v1.22.0

2021-06-14T22:11:34.161Z [INFO]: $ react-scripts build

2021-06-14T22:11:35.464Z [INFO]: Creating an optimized production build...

2021-06-14T22:11:38.913Z [INFO]: Failed to compile.

2021-06-14T22:11:38.914Z [INFO]: ./src/App.tsx

                                 Cannot find file './styles/Login.scss' in './src'.

2021-06-14T22:11:38.943Z [WARNING]: error Command failed with exit code 1.

2021-06-14T22:11:38.943Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

2021-06-14T22:11:38.950Z [ERROR]: !!! Build failed

2021-06-14T22:11:38.950Z [ERROR]: !!! Non-Zero Exit Code detected

2021-06-14T22:11:38.950Z [INFO]: # Starting environment caching...

2021-06-14T22:11:38.951Z [INFO]: # Environment caching completed

Terminating logging...```

### Expected behavior

Should not complain about not finding the scss file, since it's found locally.

### Reproduction steps

1. Deploy Amplify to develop environment using GitHub integration

### Code Snippet

```javascript
// Put your code below this line.

Log output

``` // Put your logs below this line ```

aws-exports.js

No response

package.json

{
  "name": "application",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-regular-svg-icons": "^5.15.3",
    "@fortawesome/free-solid-svg-icons": "^5.15.3",
    "@fortawesome/react-fontawesome": "^0.1.14",
    "@material-ui/core": "^4.11.4",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.23",
    "@types/node": "^15.3.1",
    "@types/react": "^17.0.6",
    "@types/react-dom": "^17.0.5",
    "aws-amplify": "^4.0.2",
    "aws-amplify-react": "^5.0.0",
    "aws-appsync": "^4.0.3",
    "aws-sdk": "^2.926.0",
    "bootstrap": "^4.6.0",
    "immutability-helper": "^3.1.1",
    "js-sha256": "^0.9.0",
    "node-sass": "^5.0.0",
    "object-mapper": "^6.2.0",
    "react": "^17.0.2",
    "react-bootstrap": "^1.6.0",
    "react-bootstrap-validation": "^0.1.11",
    "react-dom": "^17.0.2",
    "react-dropzone": "^11.3.2",
    "react-feather": "^2.0.9",
    "react-redux": "^7.2.4",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "react-sortable-hoc": "^2.0.0",
    "redux": "^4.1.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-saga": "^1.1.3",
    "simple-react-validator": "^1.6.0",
    "typescript": "^4.2.4",
    "uuid": "^8.3.2",
    "web-vitals": "^1.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@types/image-to-base64": "^2.1.0",
    "@types/object-mapper": "^6.2.0",
    "@types/react-router-dom": "^5.1.7",
    "@types/uuid": "^8.3.0"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "target": "es6",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx",
    "noFallthroughCasesInSwitch": true,
    "baseUrl": "src"
  },
  "include": [
    "src"
  ]
}

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

So there's build error in yarn run build in Amplify? I ran yarn run build locally

yarn run build
yarn run v1.22.4
$ react-scripts build
Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  859.84 KB  build/static/js/2.bb167a6f.chunk.js
  23.25 KB   build/static/css/2.4c97ca4f.chunk.css
  15.04 KB   build/static/js/main.0ca6a5e4.chunk.js
  4.48 KB    build/static/css/main.4aeb94ae.chunk.css
  1.63 KB    build/static/js/3.f121c690.chunk.js
  1.17 KB    build/static/js/runtime-main.18d11cfc.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  yarn global add serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

✨  Done in 40.67s.

????? It works locally ?????

.gitignore:

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

#amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
paullam328 commented 3 years ago

I have no luck with my research, but luck with my trial and errors and expertise :0) Apparently, Amplify CI/CD deployment does not support sass imports.

So, I uninstalled node-sass library since it's deprecated, and installed it with sass library

{
  "name": "nomadapplication",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-regular-svg-icons": "^5.15.3",
    "@fortawesome/free-solid-svg-icons": "^5.15.3",
    "@fortawesome/react-fontawesome": "^0.1.14",
    "@material-ui/core": "^4.11.4",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "@types/jest": "^26.0.23",
    "@types/node": "^15.3.1",
    "@types/react": "^17.0.6",
    "@types/react-dom": "^17.0.5",
    "aws-amplify": "^4.0.2",
    "aws-amplify-react": "^5.0.0",
    "aws-appsync": "^4.0.3",
    "aws-sdk": "^2.926.0",
    "bootstrap": "^4.6.0",
    "immutability-helper": "^3.1.1",
    "js-sha256": "^0.9.0",
    "object-mapper": "^6.2.0",
    "react": "^17.0.2",
    "react-bootstrap": "^1.6.0",
    "react-bootstrap-validation": "^0.1.11",
    "react-dom": "^17.0.2",
    "react-dropzone": "^11.3.2",
    "react-feather": "^2.0.9",
    "react-redux": "^7.2.4",
    "react-router": "^5.2.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "react-sortable-hoc": "^2.0.0",
    "redux": "^4.1.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-saga": "^1.1.3",
    "simple-react-validator": "^1.6.0",
    "typescript": "^4.2.4",
    "uuid": "^8.3.2",
    "web-vitals": "^1.0.1"
  },
  "scripts": {
    "sass": "sass src/styles/sass:src/styles/css --watch --no-source-map",
    "start": "concurrently --kill-others \"npm run sass\" \"react-scripts start\"",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@types/image-to-base64": "^2.1.0",
    "@types/object-mapper": "^6.2.0",
    "@types/react-router-dom": "^5.1.7",
    "@types/uuid": "^8.3.0",
    "concurrently": "^6.2.0",
    "sass": "^1.35.0"
  }
}

Transpiled all the scss files to css by running npm run sass, import the transpiled .css files instead of .scss, and now it works!

github-actions[bot] commented 2 years ago

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.