#12641·umi

[Bug] Webstorm配置File Types后,从@umijs/max中导包提示 Cannot resolve symbol 'useQuery'

Author: zmm2tysuCreated Aug 15, 2024Updated May 3, 2026

What happens?

image

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior:

  1. 在Webstorm中设置File Types => Ignored Files and Folders 添加了.umi以及.umi-production。添加这两个是我发现在查找函数引用时发现会列出在这两个文件夹下的编译后产物

Expected behavior

  1. 期望添加了igonre后不报错并正确提供代码提示和跳转等相关功能

Context

  • Umi Version: image image
  • Node Version: 16.14.2
  • Platform: windows