Skip to content

Commit

Permalink
Merge branch 'develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwiebell authored Jul 28, 2021
2 parents 7e73c7f + 06e92b2 commit 9809c94
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pwa-devdocs/src/tutorials/enable-sass-less-support/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@ Use a package manager, such as `yarn` or `npm`, to install the SASS loader as a
yarn add --dev sass-loader node-sass
```

{:.bs-callout-warning}
While installing the SASS loader you may get the error `TypeError: this.getOptions is not a function`.
To resolve this error, just downgrade to version 10 of SASS loader.
For this, edit `package.json` and change the version of sass-loader:

```diff
- "sass-loader": "^12.1.0"
+ "sass-loader": "^10.0.0"
```

Remove the `node_modules` folder and run:

```sh
yarn install
```

Or install sass-loader as a dev dependency with a specific version:

```sh
yarn add sass-loader@^10.0.0
```

### Step 2. Modify the Webpack configuration

Edit `webpack.config.js` and add a new `config` rule entry:
Expand Down

0 comments on commit 9809c94

Please sign in to comment.