TypeScript Notes

Reading time ~1 minute

Typescript notes


Cannot find modoule 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';

竟然无法拒绝你的打赏

微信支付

Deep Learning

This is a learning note about deep learning. Continue reading

React Native

Published on April 01, 2019