I'm in the process of converting our react-native project from js to typescript. However, for the old modules that we're importing, I'm getting the error of
Cannot find module 'numeral'
The 'numeral' module is clearly in the /node_modules
directory though
事实证明,对于打字稿文件使用的节点模块,我们只需执行yarn add @types/numeral --dev
即可将节点模块添加到node_modules/@types
文件夹中,即可解决问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.