Skip to content

Migration to angular version 11@latest #7

@paulbuechner

Description

@paulbuechner

Problem Description

After doing the migration steps for the @latest release of Angular framework (v11), some additionally steps are required to get the app running correctly.

I did some research by myself and created a fork on which migration steps/changes can be viewed on: migration-branch

Support for postcss-loader@4.2.0

Solving issues regarding the postcss-loader dependency there is an option to ignore the failing compilation by modifying the tsconfig.json as follows:

{
  "compileOnSave": false,
  "compilerOptions": {
    ...
  },
  "angularCompilerOptions": {
    "enableIvy": false,
    ...
  }
}

After this is done we get the following error:

ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.

Starting the development server now gives no more errors, but the css/scss files aren't beeing included! graphic

Fixing Syntax postcss-loader-changelog postcss-loader-syntax

Now given the new syntax which it seems has to be applied, we can migrate postcss-loader dependency to the latest version, also requiring to install the latest version of postcss. Small syntax adjustments regarding the extra-webpack.config.js where applied 787f3a2.

Metadata

Metadata

Labels

bugSomething isn't workingmigrationLibraries Migration

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions