Cannot find module './compile/validate' when running any expo or eas command - expo

I recently started getting this error when running any expo or eas commands:
Error: Cannot find module './compile/validate'
Require stack:
- C:\Users\Chady Ben Hamida\TestApp\frontend\node_modules\ajv\dist\core.js
- C:\Users\Chady Ben Hamida\TestApp\frontend\node_modules\ajv\dist\ajv.js
- C:\Users\Chady Ben Hamida\TestApp\frontend\node_modules\expo-build-properties\build\pluginConfig.js
- C:\Users\Chady Ben Hamida\TestApp\frontend\node_modules\expo-build-properties\build\withBuildProperties.js
- C:\Users\Chady Ben Hamida\TestApp\frontend\node_modules\expo-build-properties\app.plugin.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#expo\config-plugins\build\utils\plugin-resolver.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#expo\config-plugins\build\plugins\withStaticPlugin.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#expo\config-plugins\build\plugins\withPlugins.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#expo\config-plugins\build\index.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\project\ios\bundleIdentifier.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\credentials\ios\api\GraphqlClient.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\credentials\context.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\submit\context.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\build\runBuildAndSubmit.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\build\commands\build\index.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\module-loader.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\config\plugin.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\config\config.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\config\index.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\command.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\node_modules\#oclif\core\lib\index.js
- C:\Users\Chady Ben Hamida\AppData\Roaming\npm\node_modules\eas-cli\bin\run
Code: MODULE_NOT_FOUND
This used to work with no issues. Any idea what might be causing this or how I can further debug?
I have expo-cli 6.1.0, eas-cli 3.3.2 and node v18.12.1. Please let me know if you need more info.

Related

Have Error while try to Update Ember 2.14.2 to Ember 2.18.2

Anyone please help me with Ember update.My current code base was 2.14.2 and I try to update 2.18.2.And I got the below error.
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
Cannot find module
'/sampleApp/bower_components/ember/ember-template-compiler.js'
Anyone, please guide me with this. If you have another method to upgrade the version of ember please let me know or please help to solve the issue.
Update
Full stack track:
Log File Source
`ENV Summary:
ERROR Summary:
- broccoliBuilderErrorStack: [undefined]
- code: MODULE_NOT_FOUND
- codeFrame: [undefined]
- errorMessage: Cannot find module
'/Users/mariselvan/Documents/sampleApp/bower_components/ember/ember-
template-compiler.js'
- errorType: [undefined]
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- message: Cannot find module
'/Users/mariselvan/Documents/sampleApp/bower_components/ember/ember-
template-compiler.js'
- name: Error
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: Error: Cannot find module
'/Users/mariselvan/Documents/sampleApp/bower_components/ember/ember-
template-compiler.js'
at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Class.htmlbarsOptions (/Users/mariselvan/Documents/sampleApp/node_modules/ember-inplace-edit/node_modules/ember-cli-htmlbars/ember-addon-main.js:78:25)
at Object.toTree (/Users/mariselvan/Documents/sampleApp/node_modules/ember-inplace-edit/node_modules/ember-cli-htmlbars/ember-addon-main.js:31:36)
at /Users/mariselvan/Documents/sampleApp/node_modules/ember-cli-preprocess-registry/preprocessors.js:180:26
at Array.forEach (<anonymous>)
at processPlugins (/Users/mariselvan/Documents/sampleApp/node_modules/ember-cli-preprocess-registry/preprocessors.js:178:11)
at module.exports.preprocessTemplates (/Users/mariselvan/Documents/sampleApp/node_modules/ember-cli-preprocess-registry/preprocessors.js:161:10)
=================================================================================
Ember-Cli version of the project :
ember-cli: 2.14.2
node: 10.13.0
os: darwin x64
Thanks in advance.
I remember experiencing something like this around the late 2.x of ember. Basically, ember switched from bower to npm around 2.11 or so.
Are you using the ember-source npm version of ember? Your template compiler lookup is searching within bower which is most likely wrong if you've properly made the switch to npm, which you should have!
There's this issue that was fixed which may be the cause for you. Often times, updating the ember
version alone isn't enough. For me, it was always easiest to update to the ember-cli version whose blueprint installed the version of ember that you are wanting (which will help you know what other core dependencies need updating). Looking through old release notes helps here.
If you are using an old ember-cli-htmlbars-inline-precompiler, you need to upgrade to:
"ember-cli-htmlbars-inline-precompile": "^0.3.6"
If it's not either of those, please update your question with the full stack trace and the ember-cli version
EDIT: I'd like to help enable you to solve this issue yourself in the future so here's the detailed breakdown of how I reach my conclusion. In your stack trace, we see:
/Users/mariselvan/Documents/sampleApp/bower_components/ember/ember-
template-compiler.js
This is looking for ember in bower which is no longer the case since you have ember-source in your package.json. This error results from
at Class.htmlbarsOptions (/Users/mariselvan/Documents/sampleApp/node_modules/ember-inplace-edit/node_modules/ember-cli-htmlbars/ember-addon-main.js:78:25)
So the conclusion here is that the version of ember-inplace-edit is old and you need to upgrade or fix yourself. Look at this addon's package.json and it's got this fixed dependency:
"dependencies": {
"ember-cli-babel": "^5.1.3",
"ember-cli-htmlbars": "0.7.9" // this was released Jun 12, 2015
}
For the record, my ember 2.18 app bundled "ember-cli-htmlbars": "^2.0.1" by default. So lets go to the release of 0.7.9, download the source code, and look at the offending line in :
templateCompilerPath: function() {
var config = this.projectConfig();
var templateCompilerPath = config['ember-cli-htmlbars'] && config['ember-cli-htmlbars'].templateCompilerPath;
if (!templateCompilerPath) {
// THIS ONLY WORKS FOR BOWER VERSIONS OF EMBER
templateCompilerPath = this.project.bowerDirectory + '/ember/ember-template-compiler';
}
return path.resolve(this.project.root, templateCompilerPath);
}
So you have a couple of reasonable options
Fix the addon and make it support later Ember versions and open a PR to get merged upstream (by updating this ember cli htmlbars dependency)
Fork the addon and fix it without merging upstream and point to your fork
Remove the addon and rework this part of your application
use the templateCompilerPath option to point to your ember-source version (but this is honestly the worst option)

TYPO3 extensions with good tests

I am looking for a TYPO3 extensions with good test examples - unit tests, functional etc. By good I mean - test that covers possibly lot of code and are up to date so I can actually execute them without fixing anything upfront.
Here some examples which I check:
news 7.0.7 - 261 tests, 14 failed
realurl 2.4.0 - fails to execute
femanager 4.2.2 - fails to execute
devlog 3.0.2 - fails to execute
cs_seo 3.0.2 - fails to execute
aoe_ipauth 1.1.0 - fails to execute
Checkout extensions from Oliver Klee, who started 2009 to implement tests in TYPO3 core.
oelib https://extensions.typo3.org/extension/oelib/
realty https://extensions.typo3.org/extension/realty/
seminars https://extensions.typo3.org/extension/seminars/
Also have a look at his example extension 'ext_tea' at Github https://github.com/oliverklee/ext-tea.
A TYPO3 example extension for unit testing and best practices.
Oliver Klee is giving workshops, and has more examples on Github.
Christian Kuhn implemented a view days ago the possibility in TYPO3 9.5 to run Tests using Docker. Documentation is in progress
Run Build/Scripts/runTests.sh -h to see what is possible.

How to update .NETStandard in VS 2017?

When installing TweetSharp I get this error message:
Install-Package : Package TweetSharp 2.3.1 is not compatible with netstandard1.4 (.NETStandard,Version=v1.4). Package TweetSharp 2.3.1 supports:
- net20 (.NETFramework,Version=v2.0)
- net35 (.NETFramework,Version=v3.5)
- net40 (.NETFramework,Version=v4.0)
- sl4 (Silverlight,Version=v4.0)
- sl4-wp (Silverlight,Version=v4.0,Profile=WindowsPhone)
- sl4-wp71 (Silverlight,Version=v4.0,Profile=WindowsPhone71)
I have tried updating .NETStandard to the most recent release being 2.0 but that doesn't work.
I have also tried using the command 'nuget.exe locals -clear all' that also doesn't work.
How can I update netstandard1.4 to one supported by TweetSharp?
Thank you.

What does "Searching Taps" Mean with HomeBrew?

I tried installing a c++ library by doing the following, and got the message below:
What does this mean? Did it install or did it not? I'm new to homebrew. Thanks!
macbook-2:~ ME$ brew install ceres-solver
Error: No available formula for ceres-solver
Searching taps...
homebrew/science/ceres-solver
macbook-2:~ ME$
From the Homebrew Formula Cookbook:
Formula - The package definition - /usr/local/Library/Formula/foo.rb
Keg - The installation prefix of a Formula - /usr/local/Cellar/foo/0.1
opt prefix - A symlink to the active version of a Keg - /usr/local/opt/foo
Cellar - All Kegs are installed here - /usr/local/Cellar
Tap - An optional Git repository of Formulae and/or commands - /usr/local/Library/Taps/homebrew/homebrew-versions
Bottle - Pre-built Keg used instead of building from source - qt-4.8.4.mavericks.bottle.tar.gz
I suggest starting with the Introduction on the same page.

Git grep syntax with square brackets

Why does git log --grep=\[92\] match the commit with the following message:
Author: Aston, Ben (Foo-UK) <Ben.Aston#foo.co.uk>
Date: Wed May 23 12:56:23 2012 +0000
[83] Favourites icon addition for release. <BA>
git-tfs-id: [http://fooppp012v:8080/tfs/TFS2010%20Collection]$/Foo/DnR;C210630
It seems that the correct regular expression format is not what I think?
Go with git log --grep=\\[92\\]. Now you get it, right? :)
The following worked for us:
git log --grep='\[92\]'