Angular Material's compatibility update for Angular 8 version

Currently, I'm in the midst of a project that relies on Angular v 8.2.14, and I'm interested in incorporating Angular Material controls into it.

I've made an effort to integrate Angular Material into my project, however, the default version installed by ng is version 9, which seems incompatible with Angular 8 based on what I've found.

Which specific version of Angular Material is compatible with Angular 8?

Answer №1

To utilize the latest features, it is recommended to upgrade to version 8.2.3

Execute the following command:

npm install @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aac7cbdecfd8c3cbc6ea9284988499">[email protected]</a>
or
npm i @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7c111d08190e151d103c44524e524f">[email protected]</a>
.

In this context, i stands for the abbreviation of install.

Answer №2

The recommended version to use is 8.2.3

Access the documentation for version 8 by visiting

Answer №3

The recommended version to use is 8.2.3.

Check out this helpful online tool that assists in finding compatible versions of associated NPM packages - npmfinder.com

Answer №4

I am currently utilizing the @angular/CLI version:

Package Version

angular-devkit/architect 0.1402.8 angular-devkit/build-angular 14.2.8 angular-devkit/core 14.2.8 angular-devkit/schematics 14.2.8 angular/cdk 14.2.6 angular/cli 14.2.8 angular/material 14.2.6 schematics/angular 14.2.8 rxjs 7.5.7 typescript 4.7.4

Despite this, when I try to install:

ng add @angular/material.... it does not automatically install the following packages:

angular/cdk 14.2.6 angular/material 14.2.6

Instead of installing both simultaneously, I had to manually install them one by one, following a step-by-step process.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Angular Error: Attempting to access property 'then' of undefined object causes TypeError

I am struggling with implementing JHipster Auth-guard. I am facing an issue where canActivate is not triggered for a user without permission for a specific route. I have carefully examined my code, but the console shows that .then() is undefined at the sp ...

Ways to invoke the function in a separate component

How can I use ViewChild to call a method in a different component? I have a method in the piechart component that I want to access from the app component using ViewChild. In my piechart.component.ts file: export class PiechartComponent { constructor() ...

Visiting route/id does not automatically trigger a template update (the address bar displays the correct route/id)

As I dive into learning Angular, I apologize in advance if my question seems basic. I am working on a simple app with a left-side panel (using Sidenav Material component) and a content area. The left-side panel displays a list of machines (MachineComponent ...

I am eager to develop my React application, however, I encountered an issue with the error message "TypeError: MiniCssExtractPlugin is not a constructor

Error in webpack configuration file: MiniCssExtractPlugin is not recognized as a constructor. This error occurred at line 664 in the webpack configuration file located at D:\React JS Projects\React Facts\reactfacts\node_modules\rea ...

Is it possible to obtain the return type of every function stored in an array?

I'm currently working with Redux and typesafe-actions, and I am trying to find a way to automatically generate types for the actions in my reducer. Specifically, I want to have code completion for each of the string literal values of the action.type p ...

Using checkboxes for filtering in a React application

Here are the data sets I am working with: const dataSet = [ { id: 1, title: 'object1', published: true, }, { id: 2, title: 'object2', published: true, }, { id: 3, title: 'object3', ...

Tips for executing npm post installation:

After installing, I tried to run an npm package with the following commands: c:/>npm i -g pakagename c:/>pakagename parameters Unfortunately, I encountered an error message stating 'packagename' is not recognized as an internal or externa ...

Attempting to utilize pdf.js may result in an error specifying that pdf.getPage is not a recognized function

After installing pdfjs-dist, I attempted to extract all text from a specific PDF file using Node and pdfjs. Here is the code I used: import pdfjs from 'pdfjs-dist/build/pdf.js'; import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry.js&a ...

The TypeScript compiler is unable to locate the name 'window'

Within my Meteor/React project, I encounter the following line of code: let gameId = window.prompt("Please input the ID of the game you would like to load."); The TypeScript compiler presents an error during transpiling: Cannot find name 'window&apo ...

Sending a `refresh` to a Context

I'm struggling to pass a refetch function from a useQuery() hook into a context in order to call it within the context. I've been facing issues with type mismatches, and sometimes the app crashes with an error saying that refetch() is not a funct ...

Unexpected npm failure due to peer dependency issue

Trying to resolve a peer dependency issue but everything appears correct... In my package.json, the following devDependencies are listed: , "devDependencies" : { "gulp-watchify" : "^0.2.0" , "watchify" : "^0.10.2" } The gulp-watchify/package. ...

Trigger events across various tabs

I am currently developing a web application where tab1 triggers the opening of tab2 and needs to refresh when tab2 is closed. However, I have encountered an issue where the next() value is only executed once during component initialization. I suspect that ...

Can you provide instructions on how to configure the npm settings to use the current directory in a pre

I'm currently working on setting the installation directory from where the user is installing to an npm config variable. This will help me reference it in my installation script. Can anyone advise if there is a command line solution for this or will ...

Access an Angular 2 component through an email hyperlink including querystring parameters

I need to create a deep link with query string parameters for a component, so that when the link is clicked, it opens up the component in the browser. For example: exmaple.com/MyComponent?Id=10 I want to include a link in an email that will open the com ...

How to handle multiple formData input in NestJS controller

How can I create a controller in Nest.js that accepts two form-data inputs? Here is my Angular service code: public importSchema(file: File, importConfig: PreviewImportConfig): Observable<HttpEvent<SchemaParseResponse>> { const formData = ...

Display a custom error message containing a string in an Angular error alert

How can I extract a specific string from an error message? I'm trying to retrieve the phrase "Bad Request" from this particular error message "400 - Bad Request URL: put: Message: Http failure response for : 400 Bad Request Details: "Bad Request ...

After attempting to install npm manually using deb.nodesource.com/setup_14.x, it was still missing from the docker image

Regarding my docker file, I have included both python3 and node 14 in the docker image: FROM python:3.8-slim ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 ENV DJANGO_DEVELOPMENT 1 #Installing necessary packages RUN apt-get update && apt-ge ...

Creating an Angular library that intercepts HTTP requests originating from your application involves configuring a custom interceptor to capture and modify

I'm currently in the process of developing an Angular library that is designed to intercept HTTP requests within the application it's added to. However, I've encountered an issue where the interceptor doesn't function properly when impo ...

I encountered an issue when installing npm modules as I tried using all the available registry commands but still

I'm encountering an issue with npm install and have attempted various registry commands, but I still can't resolve the problem. npm timing stage:rollbackFailedOptional Completed in 0ms npm timing stage:runTopLevelLifecycles Completed in 210 ...

Create a package.json using a Node script by scanning for dependencies in the project

I find myself faced with the task of organizing and cleaning up around 300 small to medium-sized Node applications that my team has developed over the years. Unfortunately, not all dependencies are properly documented in the package.json files due to some ...