question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project Path Error claims Directory Path does not exist

See original GitHub issue

Describe the bug Backend build process is failing and the error references amplifi “featureFlags.js”. My project path exists and it is correct. This issue started about 4 days ago.

To Reproduce Steps to reproduce the behavior:

  1. After updating the lambda function
  2. Amplify push -y
  3. Go to Amplify Console
  4. See error in Build section.

Expected behavior The build should work correctly as it did before and the process will deploy the next version of the code.

Code Snippet This is the log from the Backend Build Process

Starting phase: build

Executing command: amplifyPush --simple

2020-07-27T19:38:17.079Z [INFO]: Project path: ‘C:\Users\myusername\Documents\Projects\projectname’ does not exist. 2020-07-27T19:38:17.080Z [INFO]: Error: Project path: ‘C:\Users\myusername\Documents\Projects\projectname’ does not exist. at Function.FeatureFlags.initialize (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-cli-core/lib/feature-flags/featureFlags.js:246:15) 2020-07-27T19:38:17.085Z [ERROR]: !!! Build failed 2020-07-27T19:38:17.085Z [ERROR]: !!! Non-Zero Exit Code detected 2020-07-27T19:38:17.085Z [INFO]: # Starting environment caching… 2020-07-27T19:38:17.086Z [INFO]: # Environment caching completed Terminating logging…

Environment
npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages

Binaries: Node: 12.18.1 - C:\Program Files\nodejs\node.EXE npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 84.0.4147.89 Edge: Spartan (44.18362.449.0) Internet Explorer: 11.0.18362.1 npmPackages: @testing-library/jest-dom: ^4.2.4 => 4.2.4 @testing-library/react: ^9.5.0 => 9.5.0 @testing-library/user-event: ^7.2.1 => 7.2.1 aws-amplify: ^3.0.11 => 3.0.11 aws-amplify-react: ^4.1.10 => 4.1.10 bootstrap: ^4.5.0 => 4.5.0 bootstrap-switch-button-react: ^1.2.0 => 1.2.0 formik: ^2.1.4 => 2.1.4 react: ^16.13.1 => 16.13.1 react-bootstrap: ^1.0.1 => 1.0.1 react-datepicker: ^2.16.0 => 2.16.0 react-dom: ^16.13.1 => 16.13.1 react-icons: ^3.10.0 => 3.10.0 react-router-dom: ^5.2.0 => 5.2.0 react-scripts: 3.4.1 => 3.4.1 react-select: ^3.1.0 => 3.1.0 styled-components: ^5.1.1 => 5.1.1 yup: ^0.29.1 => 0.29.1 npmGlobalPackages: @aws-amplify/cli: 4.25.0

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = ‘DEBUG’; in your app.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fuhreeuscommented, Jul 28, 2020

@attilah Thanks. My .gitignore file is woefully inadequate and I will be updating it for the reasons you listed.

Now that I’m thinking back, I can say that I created my .gitignore file myself. Amplify did not auto-generate it.

I will try your workaround and report back.

1reaction
attilahcommented, Jul 28, 2020

@fuhreeus @AravindTReddy by default Amplify CLI generated .gitignore excludes the local-env-info.json file because it contains information about the locally initialized environment. Is there a particular reason why you have checked it into source control?

If you add the file back to .gitignore and remove it from source control, that could unblock you to use the latest version of the CLI, while we will work on a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Path Does Not Exist error - Unity Forum
Try creating project in a place you actually have permission to create it on the filesystem. Program Files isn't writable by non-admin apps....
Read more >
"the specified path does not exist" error - Microsoft Community
Hello, I am getting this error when I am trying to open device manager, right click on computer manager and I get this...
Read more >
Path does not exist? - R Markdown - RStudio Community
First verify that the file exists. Then, try with the absolute path of that file. Do you get same error then? @FinnW, in...
Read more >
Directory 'Path' does not exist. Failed to start monitoring file ...
The solution was simple, just create the missing directory during the build. I just added a MakeDir line to my publish profile and...
Read more >
VS : How to solve error - The project file could not be loaded ...
In Properties Window you will find unloaded project properties. There will be a single property named File path which stores the path of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found