"Encountering issue with auto-import suggestions failing to appear in VS Code version 1.88.0

After installing the necessary libraries for MUI, I encountered an issue where basic components like Typography were not showing up in intellisense. Instead, it was displaying @mui/icons-material. You can view screenshots below:

https://i.stack.imgur.com/tOTSO.png

https://i.stack.imgur.com/i3TpY.png

Everything was working fine until I updated VSCode to the latest version.

Is anyone else experiencing the same problem?

Answer №1

There was a recent issue in VS Code 1.88 that affected auto-import functionality, which is being addressed in the issue ticket 1.88.0 update broke JS Auto Import functionality #58113. This problem is related to the built-in TypeScript language-support extension of VS Code 1.88, which utilizes TypeScript 5.4. The issue, described in No auto-import from aliased symbol from ts files in js files #57740, has been fixed in Pull Request fix type import check for default-import/re-export in js files #57778, but the backport to TS 5.4 was initially missed. However, this backport has now been included in TS 5.4.5 and will be implemented in VS Code 1.88.1, which has already been released.

The @mui/material-specific issue can be found at [material-ui] Component import suggestion not appearing in VS Code #41802.

Answer №2

Tried out version 1.88 and it caused some issues, but switching back to version 1.87 fixed everything smoothly!

Answer №3

For the time being, I decided to try out the 'JavaScript and TypeScript Nightly' extension due to an issue with auto import in the current version of VSCode (1.88).

And I'm happy to report that it's working well: Check out this screenshot

Update: The problem has been resolved in VSCode 1.88.1

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

Selecting default options in Material-UI Autocomplete component in real-time - a step-by-step guide!

Is there a way to automatically pre-select the default option in an Autocomplete component once the list of options has finished loading via an AJAX call? Imagine this scenario: when a user visits the page, a list of options is being fetched from the serve ...

KeyboardDatePicker with Material UI filled input

Can the variant="filled" prop be used with a Material UI date picker to achieve the same filled input box effect, rather than using the native browser datepicker? Here is an example of a filled input: ...

Turning XSD into TypeScript code

Stumbling upon this tool called CXSD, I was intrigued. The documentation describes cxsd as a streaming XSD parser and XML parser generator designed for Node.js and TypeScript (optional but highly recommended). It seemed like the perfect solution for my ne ...

Animating Angular on the table row element

I am currently displaying a table with a list of items that are updated via polling using an http get request to the server. The response is rendered only if there have been changes in the data. My goal is to add animations to the rows of the table and tr ...

Are you in need of a collection of Avatars with stylish borders?

Recently started using MUI and experimenting with creating an AvatarGroup where each avatar has a border. I'm aiming for an effect similar to the following image: I have managed to give individual avatars a border, but when they are grouped together, ...

The build process encounters an issue with initializing Sentry's Vuejs (with Typescript) Integration

While attempting to build my (vue-cli-3 based) Vuejs project using gitlab-runner on my local machine, an error occurs: 98% after emitting CopyPlugin ERROR Failed to compile with 1 errors ... Property 'util' is missing in type 'VueConstruct ...

Can we create an alias for the import path in TypeScript?

import A = require('../../distant/PathToA'); import B = require('./different/path/PathToB'); I am utilizing external modules (commonJS) and browserify, with WebStorm as my editor. If this were just regular javascript, there are severa ...

Using an external npm module in TypeScript can result in the tsc output directory being modified

In my TypeScript project, I have set up the build process to generate JavaScript files in the ./src/ directory. Everything works smoothly when building against existing npm modules, such as Angular 2 imports. However, I encountered a strange issue when I ...

Encountering an error with the Angular 2 SimpleChanges Object during the initial npm start process

Within my Angular 2 application, there exists a component that holds an array of objects and passes the selected object to its immediate child component for displaying more detailed data. Utilizing the "SimpleChanges" functionality in the child component a ...

Encountering an issue in a Next.js application while building it, where an error is triggered because the property 'protocol' of 'window.location' cannot be destructured due to being undefined

While building my nextjs application, I encountered the following error. My setup uses typescript for building purposes, although I am only using JavaScript. Build error occurred: TypeError: Cannot destructure property 'protocol' of 'window ...

Typography is supported by a button located on the side

Is it possible to align a button next to text in a paper container, aligned to the right? <div className={classes.root}> <Grid container spacing={3}> <Grid item xs={12} md={6}> <Paper className={classes.paper}> ...

What sets apart Material UI from Material 2 Design in terms of appearance?

You can purchase a 79$ Figma version of MUI components at https://mui.com/store/#design, with a free demo version also available. Additionally, there is a free version of Material 2 Design Components that can be accessed through It seems that MUI is simp ...

How can props be defined in Vue3 using Typescript?

When using Vue3's defineComponent function, it requires the first generic parameter to be Props. To provide props type using Typescript interface, you can do it like this: export default defineComponent<{ initial?: number }>({ setup(props) { ...

Warning: The parameter type in the Node JS project is not compatible with the argument type

Upon running this code in WebStorm, I encountered a warning: Argument type {where: {email: userData.emil}} is not assignable to parameter type NonNullFindOptions<Model["_attributes"]> Can someone explain this warning to me? This project ...

Using TypeScript with knockout for custom binding efforts

I am in the process of developing a TypeScript class that will handle all bindings using Knockout's mechanisms. Although I have made progress with the initial steps, I have encountered a roadblock. While I can successfully bind data to my HTML element ...

how to customize nested styles in material-ui

I am facing an issue with a basic Material-UI component <Chip avatar={ <Avatar> <TruckIcon color='primary' /> </Avatar> } label={name} color='primary' /> ...

Introducing an extra 'pipe' in rxjs angular may result in generating errors

Encountering an unusual issue with Angular. The following code functions correctly: this.form.valueChanges .pipe( startWith(this.form.value), pairwise(), tap(() => console.log('aa')) ...

type Y does not contain property X

When I encounter this error message: The property 'module' is missing in the type 'Menu'. The property 'parentId' is not found in the type 'Menu'. the code snippet triggering it appears like this: private menus: ...

Utilizing CSS transitions to smoothly adjust the width of an element until it completely fills the container div in ReactJS

import React from 'react'; import PropTypes from 'prop-types'; import SearchIcon from '@material-ui/icons/Search'; import InputBase from '@material-ui/core/InputBase'; import { AccountCircle } from '@material-ui ...

What is the best way to transform a for loop using array.slice into a for-of loop or map function in order to generate columns and rows

Experiencing an issue with Angular8. Seeking help to convert a for loop for an array into a loop utilizing either for-of or array.map. The code in question involves passing an array of objects and the need to separate it into col and row arrays for visual ...