tyrant resolve是从path导入的, webstrom为啥没有path的提示? [upl-image-preview uuid=7246bad5-3367-42f3-8a99-744ab0ff2b82 url=https://cn-nb1.rains3.com/3rcd/2024-03-09/1709989048-513829-image.png fullscreen_uri={URL}] @Cloneable
Cloneable tyrant 我还没遇到过这种情况,有可能是 node core 相关的包提示没有加入 webstorm 里面,你可以参考 https://stackoverflow.com/a/20490106 这个回答看看能不能解决,实在不行就只能自己手写 import { resolve } from 'path'; 了。