我已经开始使用react本机项目,之前是本机代码。 我想添加Amazon Lex,因此从链接执行以下步骤
https://aws-amplify.github.io/docs/js/interactions
下面是我的App.js文件
import React from 'react';
import { StyleSheet,Text,View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,backgroundColor: '#fff',alignItems: 'center',justifyContent: 'center',},});
我刚刚建立了一个扩增库并为LEX添加了交互,但是在尝试运行应用程序时开始出现错误。在添加之前工作正常...一旦创建Amplify文件夹并启动后端错误.....
(节点:26180)UnhandledPromiseRejectionWarning:错误:玩味-匆匆-地图: 急速模块命名冲突:重复的模块名称: myamplifyproject_cfnlambda_87887b9a路径: C:\ Users \ temp \ Desktop \ myAmplifyProject \ amplify \ backend \ interactions \ lex900662fd \ src \ package.json 与...碰撞 C:\ Users \ temp \ Desktop \ myAmplifyProject \ amplify#current-cloud-backend \ interactions \ lex900662fd \ src \ package.json
此错误是由
hasteImpl
返回相同的名称引起的 不同的文件。 在setModule(C:\ Users \ temp \ Desktop \ myAmplifyProject \ node_modules \ jest-haste-map \ build \ index.js:569:17) 在workerReply(C:\ Users \ temp \ Desktop \ myAmplifyProject \ node_modules \ jest-haste-map \ build \ index.js:641:9) 在processTicksAndRejections(内部/进程/task_queues.js:93:5) 在异步Promise.all(索引30)错误18:24(节点:26180)UnhandledPromiseRejectionWarning:未处理的承诺拒绝。这个 由抛出异步函数引起的错误 没有障碍,或者拒绝了没有处理的承诺 使用.catch()。 (拒绝ID:2)(节点:26180)[DEP0018] DeprecationWarning:已弃用未处理的承诺拒绝。在 未来,未处理的承诺拒绝将终止 使用非零退出代码的Node.js进程。 (节点:26180) UnhandledPromiseRejectionWarning:错误:jest-haste-map:加速模块 命名冲突:重复的模块名称: myamplifyproject_cfnlambda_87887b9a路径: C:\ Users \ temp \ Desktop \ myAmplifyProject \ amplify \ backend \ interactions \ lex900662fd \ src \ package.json 与...碰撞 C:\ Users \ temp \ Desktop \ myAmplifyProject \ amplify#current-cloud-backend \ interactions \ lex900662fd \ src \ package.json此错误是由
hasteImpl
返回相同的名称引起的 不同的文件。 在setModule(C:\ Users \ temp \ Desktop \ myAmplifyProject \ node_modules \ jest-haste-map \ build \ index.js:569:17) 在workerReply(C:\ Users \ temp \ Desktop \ myAmplifyProject \ node_modules \ jest-haste-map \ build \ index.js:641:9) 在processTicksAndRejections(内部/进程/task_queues.js:93:5) 在异步Promise.all(索引30)(节点:26180)处UnhandledPromiseRejectionWarning:未处理的诺言拒绝。这个 由抛出异步函数引起的错误 没有障碍,或者拒绝了没有处理的承诺 使用.catch()。 (拒绝ID:3)
我已将所有最新版本用于本机。
我尝试了以下解决方案,但无法运行how to make react native packager ignore certain directories
我只是遵循了步骤...我要去哪里错了......什么都错过了... 请帮助...这是我第一个使用本机的应用程序。...我实际上迷路了