uni-app uses cli to create a TypeScritp project and introduces uview-ui to report an error [Solution]

insert image description here
Error: The declaration file for the module "uview-ui" cannot be found. "e:/xxxxxx/node_modules/uview-ui/index.js" implicitly has type "any".
try npm install @types/uview-ui(if exists), or add a new declaration (.d.ts) file declare module 'uview-ui';containing ts(7016)

Obviously adding it in sfc.d.ts declare module 'uview-ui'still doesn’t work. After thinking about it, I couldn’t figure it out. After reading the error message again, I found that there was a semicolon on it, but adding the semicolon turned out to be successful. Hahaha, this code prompt is absolutely amazing. , I feel that there will be people who are as confused as I am.
insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/qq1014156094/article/details/107316969