I upgraded Amplify CLI, but I discovered in my amplify/backend/backend-config.json file has disappeared after taking a day to discovered that. Then I have tried running amplify init again with the options to continue with my existing environment or new environment, and I have tried both but still got the same error
Error: File at path: 'C:\Users\BEN\documents\TinderClone\amplify\backend\backend-config.json' does not exist
What do I do to solve this error (to get the backend-config.json back).
I was able to solve this by using the amplify pull then navigating to the #current-cloud-backend and copying the file from there to the directory needed.
I've solved the issue after more than 24 hours of frustration looking for the solution.
In my C:\Users\BEN.amplify\bin I deleted the bin folder, and I upgraded the amplify CLI using:-
"curl -sL https://aws-amplify.github.io/amplify-cli/install-win -o install.cmd && install.cmd"
After the download and installation I restarted my system. That solved the backend-config.json does not exist issue.
I hope this works for you if you have this same issue.
Related
I'm Having an issue that ruins my entire development plans, And I don't think I'm even the problem!
There is an headless CMS program (open source) called Strapi, If you know the program then good, If not, Your more than welcome to try and tell me if you can help me with this problem.
I'm having trouble creating a Strapi app in VSCode.
The error that I'm receiving is:
You are running Node.js 18.4.0
Strapi requires Node.js >=14.19.1 <=16.x.x
Please make sure to use the right version of Node.
But, The fault isn't on me, I have 16.17.0 version of node installed, and without a trace of the 18.4 version specified on the error code.
I tried uninstalling node, Changing the dependencies in the launch.json file, Nothing worked!
So I Found the solution, the problem was with the version, the recommended 16.17.0 version of node not working with strapi, the 16.15.0 works actually.
This is my first post so my apologies if I leave out some important details that will make it easier to answer the question.
As I was working on my project for my app development class I stumbled upon an error that I cannot fix/figure out what's causing it. I did not mess with any of the node modules and the app was working perfectly fine before the error message.
Image of error message
I have attempted to clear the cache, re install and update some of the packages that I needed for this project, and looked for any errors within the code of my project. No luck after 2 hours of attempts.
Are there any recommendations of that I need to do to fix this? Should I start the project from scratch again?
Thank you all!
Have you tried cd ios && pod install? Also, upload your package.json file
As the error suggests react-navigation-drawer is trying to find a component which doesn't exist. Implying your versions are out of sync.
I was able resolve this issue by upgrading react-navigation#4.0.0.
I am pretty new to React, sorry if I am asking something stupid. Any help would be highly appreciated :)
ENVIRONMENT
Ubuntu 20.04 in Windows 10 (WSL2)
Node version - v14.1.0
Npm version - v6.14.7
Code editor - VS Code v1.14.0
STEPS I DID
npx create-react-app <app-name>
cd <app-name>
npm start
https://localhost:3000 opens up in browser with default React landing page. Console says '[HMR] Waiting for update signal from WDS...
'
Delete all files in src directory and create empty index.js in src directory.
Output expected: Blank screen
Output: Default landing page of React even if I reload the page.
Struggles I made before asking this question :(
Looked in issues of create-react-app.
Tried troubleshooting create-react-app as mentioned in official docs.
Looked in stackoverflow for similar questions. Found some but none worked, maybe because my dev environment was different from them (WSL2 in Windows 10).
That sounds like a caching issue to me. My guess would be to clear your google chrome cache and try again. If that doesn't work, check your package.json file and make sure that under "scripts": "start" it says "react-scripts start".
Yayy! The issue is resolved.
It was my mistake :(.
All these days, I was trying to access the Windows filesystem from WSL2 and it seemed to be very slow. So I decided to work in the Linux filesystem itself. And everything works fine now. Thanks for helping :)
Hi all,
First of all, I know that this is possibly a duplicate of many other posts, but I've already tried all things people posted on stack/github.
I have two problems:
After running npm audit fix packager will be stuck at starting packager...
I have a component folder with three components in it, but when I run the project it says that the components don't exist.
The first problem isn't really that bad to me, I can just ignore running npm audit.
The second problem, however, does annoy me.
This is my folder structure:
My IDE says everything is OK. My IDE automatically imported the components from my component folder and it links to them, correctly.
But I get this error:
9:40:04 AM: Unable to resolve ./components/Home" from ".//App.js`: The module `./components/Home` could not be found"
9:40:04 AM: Failed building JavaScript bundle
I hope someone can help me because I don't know where to start or what to do.
My setup:
OS: Ubuntu 18.04
Testing device: Android
Testing with: Expo (create-react-native-app)
Thanks in advance!
Regarding the second issue, using .jsx extensions in create-react-native-app isn't supported. You can just use the .js extension and still use jsx, though.
So to fix your problem, rename all the .jsx files to just .js.
I sometimes get an error when trying to install any cordova plugin ionic (usually after around 6pm GMT+0).
These are with plugins from both npm and GitHub, and the error I get is:
Error: Text data outside of root node.
Line: 155
Column: 1
Char: "
The install command will be something along the lines of
ionic cordova plugin add cordova-plugin-network-information#1.3.1
It really does not matter what plugin it is, because as mentioned it happens for a number of them, they all get the same error. It will work perfectly ok in the morning, and then suddenly it shuts down.
I have tried on multiple computers, on multiple separate internet connections (from the UK), and I even have a script that reruns the commands if they fail, so it will attempt to install around 20 plugins continuously until they get installed for however long I run my script. I ran it for an hour constantly, and not a single one was installed.
I also checked the status of npm and GitHub if they were perhaps down, but they seemed to be up and running as usual...
Any ideas would be greatly appreciated
* Based on my comment which helped the asker, and which I was asked to publish as an answer:*
I don't know ionic at all, but I do have some experience with Cordova and never had any issues installing plugins, even on a corporate network.
Try to install the plugin without ionic.
cordova plugin add my.plugin.name
This error can be caused by an invalid AndroidManifest.xml file. After installing a plugin using ionic corvoda, my AndroidManifest.xml got a syntax error and I had this issue when building the APK.
After fixing the syntax error, the build finished successfully.