Error: Cannot find module './config' [nodemon] app crashed - waiting for file changes before starting - crash

It says it can't find the module, but the module is still there. enter image description here

Related

Cannot find module 'fs-extra' in CI Pipeline

Recently I've made some changes to the cypress project, adding the configFiles as per the documentation explains.
https://docs.cypress.io/api/plugins/configuration-api#Switch-between-multiple-configuration-files
Once done that the bitbucket pipeline keeps on failing throwing this error.
[69:0503/090921.933433:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 264: Permission denied (13)
[264:0503/090921.979708:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is
Your pluginsFile is invalid: /opt/atlassian/pipelines/agent/build/cypress/plugins/index.js
It threw an error when required, check the stack trace below:
Error: Cannot find module 'fs-extra'
Require stack:
- /opt/atlassian/pipelines/agent/build/cypress/plugins/index.js
- /root/.cache/Cypress/9.6.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js
- /root/.cache/Cypress/9.6.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
Does anyone have a clue as to why is that? I've tried multiple things with different docker images, changed the ts file to a js one, included the "pluginsFile": "cypress/plugins/index.js" in the cypress.json file, removing the node modules and the package-lock file and reinstalling. Nothing seems to work.
Something worth mentioning is that this only occurs when trying to run the project using the bitbucket pipeline and the cypress/included:9.6.0 docker image

Expo (React Native) Failed to load all assets error

I randomly see expo start -ci --no-dev fail with Failed to load all assets.
I cleaned up my TS errors and its passing with no errors.
I have been debugging this for three days now and getting nowhere. The error gives no clue as to what is failing. "Extra Info" is blank. Device log shows nothing.
To make things worse, I gradually add packages and functions into my monorepo, and at some point the error appears. So I'm thinking - ok, so the error is with this file. Commenting it out, trying again to make sure - yes it now works. Uncommenting it to make sure it was the problem - No. It doesn't fail. It works.
Seems like I am not alone: Error on Expo - Failed to load all assets

Meteor application not deploying, Errors prevented startup

I cloned the rocket chat repo on GitHub and ran meteor npm install && meteor, it wasn't able to deploy the app and got stuck, so I exited and tried meteor but it throws the same error:
Errors prevented startup:
While loading plugin `Livechat` from package `rocketchat:livechat`:
child_process.js:635:11: Command failed: C:\web dev\RocketChat\Rocket.Chat\packages\rocketchat-livechat\plugin/build.bat
'C:\web' is not recognized as an internal or external command,
operable program or batch file.
at checkExecSyncError (child_process.js:635:11)
at execSync (child_process.js:671:15)
at module (packages/Livechat/plugin/build-livechat.js:20:2)
at fileEvaluate (packages/modules-runtime.js:336:7)
at Module.require (packages/modules-runtime.js:238:14)
at require (packages/modules-runtime.js:258:21)
at <runJavaScript-36>:94:1
at <runJavaScript-36>:99:3
Your application has errors. Waiting for file change.
Started MongoDB.
And gets stuck there.
The issue here is with the space in the name of your web deb folder. This should probably be compensated for in the package code, but since it isn't the easiest solution would be to rename your folder to not have a space in the name and then maybe file a issue in the appropriate repo.

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)

I'm getting such error, while building IOS app in React Native project:
was encountered processing the command (domain=NSPOSIXErrorDomain,
code=2) Print: Entry, ":CFBundleIdentifier", Does Not Exist
I read threads in GitHub regarding that issues, however didn't find solutions there which could solve my problem. Any ideas how to fix it?
The cause might be that you have some build files from the previous build which are causing the problem.
Clear the ios/build/your_project to trigger a fresh build
In my case the Xcode build folder needed to be cleaned. To fix, in Xcode go to Product | Clean Build Folder
In my case, the cause was - The build file name was MyMob.app but the app it tries to install to the simulator was mymob.app.
I solved it by changing the line in mymob.xcscheme:46
BuildableName = "MyMob.app"
BuildableName = "mymob.app"
Log was
iinfo Installing "build/mymob/Build/Products/Debug-iphonesimulator/mymob.app"
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
info Launching "com.mymob.app"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=4):
The request to open "com.mymob.app" failed.
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn't be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"
Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"

archive failed with validation error and code "dyld: Symbol not found: _OBJC_CLASS_$_DVTITunesConnectProxy"

I was trying to archive my app and do testFlight afterwards. But every time when I tried to archive, this same error message would show up.
I have generated provisioning file and I have added certificate. One thing is that when I clicked on my provisioning file for distribution, Xcode would pop up, and there is no iPhone configuration utility anymore.
Could anyone help me that what I have done wrong or what is missing?
dyld: Symbol not found: _OBJC_CLASS_$_DVTITunesConnectProxy
Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/../../../../../../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation failed with exit code 5