小编Chr*_*art的帖子

Office Graph API - 从列表中获取项目

Office Graph API中是否有办法访问特定列表中的项目 - 而不仅仅是我可以看到的项目,而是我可能无法访问的项目?

sharepoint office365

9
推荐指数
1
解决办法
2230
查看次数

错误:元素类型无效:预期为字符串或类/函数,但得到:升级 React Native 后未定义

我有以下js:

import React, { useState, useEffect, useRef } from 'react';
import {
  Text,
  View,
  TextInput,
  Alert,
  Image,
  TouchableOpacity,
} from 'react-native';
import 'react-native-get-random-values';
import Button from 'react-native-button';
import PhoneInput from 'react-native-phone-input';
import { FirebaseRecaptchaVerifierModal } from 'expo-firebase-recaptcha';
import CodeField from 'react-native-confirmation-code-field';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import { useColorScheme } from 'react-native-appearance';
import TNActivityIndicator from '../../truly-native/TNActivityIndicator';
import TNProfilePictureSelector from '../../truly-native/TNProfilePictureSelector/TNProfilePictureSelector';
import CountriesModalPicker from '../../truly-native/CountriesModalPicker/CountriesModalPicker';
import { IMLocalized } from '../../localization/IMLocalization';
import { setUserData } from '../redux/auth';
import { connect …
Run Code Online (Sandbox Code Playgroud)

react-native react-native-android

7
推荐指数
1
解决办法
1181
查看次数

无法从 node_modules\uuidv4\build\lib\uuidv4.js 解析模块 util:在项目中找不到 util

我已经更新了 package.json 中的模块,现在出现错误“无法从 node_modules\uuidv4\build\lib\uuidv4.js 解析模块 util:在项目中找不到 util。”

在下面的步骤中,我已经完成了#2。我没有为 #1 使用 watchman,我在 #3 中使用的是 npm 而不是 yarn,我不知道 #4 指的是什么路径。这是我的完整输出。

PS C:\Dev\myProj> react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --资产目标 android/app/src/main/res/

(节点:16148)警告:访问循环依赖中模块导出的不存在的属性“padLevels”(node --trace-warnings ...用于显示警告的创建位置)欢迎使用 React Native!一次学习,随处书写

错误无法utilnode_modules\uuidv4\build\lib\uuidv4.js以下位置解析模块:在项目中找不到 util。

如果您确定该模块存在,请尝试以下步骤:

  1. 清除守望者手表:watchman watch-del-all
  2. 删除 node_modules: rm -rf node_modules 并运行 yarn install
  3. 重置 Metro 的缓存:yarn start --reset-cache
  4. 删除缓存:rm -rf /tmp/metro-*。使用 --verbose 标志运行 CLI 以获取更多详细信息。错误:无法utilnode_modules\uuidv4\build\lib\uuidv4.js以下位置解析模块:在项目中找不到 util。

如果您确定该模块存在,请尝试以下步骤:

  1. 清除守望者手表:watchman watch-del-all
  2. 删除 node_modules: rm -rf …

react-native react-native-android

5
推荐指数
1
解决办法
3554
查看次数

React Native - 不断出现错误,例如“错误:EPERM:不允许操作,lstat ...”

我对 React Native 相当陌生,看起来我的应用程序在执行我的主要应用程序代码之前崩溃了,但我不知道在哪里。在 VSCode 中,我在输出中看到以下内容:

Error: EPERM: operation not permitted, lstat 'c:\Dev\myapp\android\app\build\generated\not_namespaced_r_class_sources\debug\r\com\bumptech\glide\integration\okhttp'
Emitted 'error' event on NodeWatcher instance at:
    at NodeWatcher.<anonymous> (c:\Dev\myapp\node_modules\sane\src\node_watcher.js:291:16)
    at FSReqCallback.oncomplete (fs.js:176:21) {
  errno: -4048,
  code: 'EPERM',
  syscall: 'lstat',
  path: 'c:\\Dev\\myapp\\android\\app\\build\\generated\\not_namespaced_r_class_sources\\debug\\r\\com\\bumptech\\glide\\integration\\okhttp'
Run Code Online (Sandbox Code Playgroud)

我试图弄清楚如何确定这是从哪里来的,以及如何在将来调试此类错误。

react-native

5
推荐指数
2
解决办法
3万
查看次数