npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@types%2frainbow-me__animated-charts - Not found
npm error 404
npm error 404 '@types/rainbow-me__animated-charts@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-10T13_30_24_946Z-debug-0.log
Я пытаюсь получить основы из основной работы документации, но пакет каким -то образом не распознается в проекте. Вот мой базовый код: [code]import { StatusBar } from 'expo-status-bar'; import { useState } from 'react'; import { Image } from 'expo-image'; import styles from './../../assets/styles/styles'; import { TextInput, Text, Modal, TouchableOpacity, View, Dimensions } from 'react-native'; // import { Ionicons } from '@expo-vector-icons'; import Feather from '@expo/vector-icons/Feather'; import { LineChartBicolor } from "react-native-gifted-charts" import {ChartDot, ChartPath, ChartPathProvider, monotoneCubicInterpolation} from '@rainbow-me/animated-charts';
export function App() { // We need to get the height of the phone and use it relatively, // This is because height of phones vary const windowHeight = Dimensions.get('window').height;
// This state would determine if the drawer sheet is visible or not const [isBottomSheetOpen, setIsBottomSheetOpen] = useState(false);
// Function to open the bottom sheet const handleOpenBottomSheet = () => { setIsBottomSheetOpen(true); };
// Function to close the bottom sheet const handleCloseBottomSheet = () => { setIsBottomSheetOpen(false); };
return (
Privall All safe Tron wallet
Telegram channel
{/* Wallet Card */}
112,349 TRX 77 Transactions
Send Receive
{/* Wallet Card */}
{/* Chart */}
$7.12 -3.14% 24 hr
{/* Chart */}
); } < /code> Ошибка указывает на следующую строку в редакторе: < /p> import {ChartDot, ChartPath, ChartPathProvider, monotoneCubicInterpolation} from '@rainbow-me/animated-charts'; < /code> говоря: < /p>
Не удалось найти файл объявления для модуля '@Rainbow-me /animated-Charts'. '/home/user/work/expo/privall-ts/node_modules/@rainbow-me/animated-charts/src/index.js' неявно имеет «любой тип». try npm i ---Save- Dev @Types/Rainbow-Me__animated-Charts [/code] Если он существует, или добавьте новый файл объявления (.D.DS), содержащий модуль объявления ' @Rainbow-Me/Animated-Charts'; ts (7016)
Однако я попробовал npm i-save-dev @types/rainbow-me__memated-charts , но он вернул следующее в Конец: < /p> [code]npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@types%2frainbow-me__animated-charts - Not found npm error 404 npm error 404 '@types/rainbow-me__animated-charts@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-10T13_30_24_946Z-debug-0.log [/code] Любое руководство приветствуется.