Answers for "vscode react cannot find moudle when import image"

0

vscode react cannot find moudle when import image

create global.d.ts file in folder src,and add this line

declare module "*.jpg" {
  export default "" as string;
}
declare module "*.png" {
  export default "" as string;
}
Posted by: Guest on July-28-2020

Code answers related to "vscode react cannot find moudle when import image"

Code answers related to "Javascript"

Browse Popular Code Answers by Language