TypeScript Notes

Reading time ~1 minute

Typescript notes


Cannot find module issue

Cannot find module '*.jpg'.ts(2307)
Cannot find module '*.png'.ts(2307)
Cannot find module '*.svg'.ts(2307)
Cannot find module '*.json'.ts(2307)

Solution

Create typings.d.ts at root.

declare module '*.jpg';
declare module '*.png';
declare module '*.json';
declare module '*.svg';

竟然无法拒绝你的打赏

微信支付

专业处理中国护照照片一次通过

专业处理中国护照照片一次通过 Continue reading

Python Notes

Published on April 01, 2021

Scrum Training Notes

Published on December 01, 2020