error TS1149: File name '/Users/xxxxxx/state.ts' differs from already included file name '/Users/xxxxxx/State.ts' only in casing.
当遇到文件名与import引入的大小写不一致时,会出现错误,统一大小写之后若错误还在,需要重启typescript服务器
1. 打开命令面板
2. 输入:typescript restart ts server
error TS1149: File name '/Users/xxxxxx/state.ts' differs from already included file name '/Users/xxxxxx/State.ts' only in casing.
当遇到文件名与import引入的大小写不一致时,会出现错误,统一大小写之后若错误还在,需要重启typescript服务器
1. 打开命令面板
2. 输入:typescript restart ts server
本文标题:Typescript 引入模块名称与实际名称不符
本文链接:https://www.haomeiwen.com/subject/qazjoxtx.html
网友评论