I'm deploying using Ionic + Capacitor + Firebase.
While I run cli to deploy firebase functions, it having below errors.
The solution I'm having right now is delete the node_modules folder of Ionic project.
Here is my system info:
"firebase": "^9.17.1",
"firebase-functions": "^4.2.1",
`Ionic:
Ionic CLI : 6.20.8 (/usr/local/lib/node_modules/#ionic/cli)
Ionic Framework : #ionic/angular 6.5.2
#angular-devkit/build-angular : 15.1.4
#angular-devkit/schematics : 15.1.4
#angular/cli : 15.1.4
#ionic/angular-toolkit : 7.0.0
Capacitor:
Capacitor CLI : 4.6.3
#capacitor/android : 4.6.3
#capacitor/core : 4.6.3
#capacitor/ios : 4.6.3
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
NodeJS : v18.12.1 (/usr/local/bin/node)
npm : 9.4.0
OS : macOS Monterey`
Error:
`=== Deploying to 'project'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
lint
tslint --project tsconfig.json
Running command: npm --prefix "$RESOURCE_DIR" run build
build
tsc
../node_modules/#types/jasmine/index.d.ts:25:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: beforeAll, beforeEach, afterAll, afterEach, describe, fdescribe, xdescribe, it, fit, xit, expect, DEFAULT_TIMEOUT_INTERVAL, CustomMatcherFactory, CustomEqualityTester
25 type ImplementationCallback = jasmine.ImplementationCallback;
../node_modules/#types/jest/index.d.ts:33:1
33 declare var beforeAll: jest.Lifecycle;
~~~~~~~
Conflicts are in this file.
../node_modules/#types/jasmine/index.d.ts:405:9 - error TS2374: Duplicate index signature for type 'number'.
405 [n: number]: T;
~~~~~~~~~~~~~~~
../node_modules/#types/jasmine/index.d.ts:408:15 - error TS2428: All declarations of 'ArrayContaining' must have identical type parameters.
408 interface ArrayContaining<T> extends AsymmetricMatcher<any> {
~~~~~~~~~~~~~~~
../node_modules/#types/jasmine/index.d.ts:413:15 - error TS2428: All declarations of 'ObjectContaining' must have identical type parameters.
413 interface ObjectContaining<T> extends AsymmetricMatcher<T> {
~~~~~~~~~~~~~~~~
../node_modules/#types/jasmine/index.d.ts:451:9 - error TS2374: Duplicate index signature for type 'string'.
451 [name: string]: CustomMatcherFactory;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/#types/jasmine/index.d.ts:460:9 - error TS2687: All declarations of 'message' must have identical modifiers.
460 message?: string | undefined;
~~~~~~~
../node_modules/#types/jasmine/index.d.ts:1071:15 - error TS2428: All declarations of 'SpyAnd' must have identical type parameters.
1071 interface SpyAnd<Fn extends Func> {
~~~~~~
../node_modules/#types/jasmine/index.d.ts:1092:15 - error TS2428: All declarations of 'Calls' must have identical type parameters.
1092 interface Calls<Fn extends Func> {
~~~~~
../node_modules/#types/jasmine/index.d.ts:1115:15 - error TS2428: All declarations of 'CallInfo' must have identical type parameters.
1115 interface CallInfo<Fn extends Func> {
~~~~~~~~
../node_modules/#types/jest/index.d.ts:33:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: beforeAll, beforeEach, afterAll, afterEach, describe, fdescribe, xdescribe, it, fit, xit, expect, DEFAULT_TIMEOUT_INTERVAL, CustomMatcherFactory, CustomEqualityTester
33 declare var beforeAll: jest.Lifecycle;
../node_modules/#types/jasmine/index.d.ts:25:1
25 type ImplementationCallback = jasmine.ImplementationCallback;
~~~~
Conflicts are in this file.
../node_modules/#types/jest/index.d.ts:1343:46 - error TS2314: Generic type 'ArrayContaining' requires 1 type argument(s).
1343 function arrayContaining(sample: any[]): ArrayContaining;
~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1344:45 - error TS2314: Generic type 'ObjectContaining' requires 1 type argument(s).
1344 function objectContaining(sample: any): ObjectContaining;
~~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1370:15 - error TS2428: All declarations of 'ArrayContaining' must have identical type parameters.
1370 interface ArrayContaining {
~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1376:15 - error TS2428: All declarations of 'ObjectContaining' must have identical type parameters.
1376 interface ObjectContaining {
~~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1379:9 - error TS2386: Overload signatures must all be optional or required.
1379 jasmineToString(): string;
~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1385:14 - error TS2314: Generic type 'SpyAnd' requires 1 type argument(s).
1385 and: SpyAnd;
~~~~~~
../node_modules/#types/jest/index.d.ts:1386:16 - error TS2314: Generic type 'Calls' requires 1 type argument(s).
1386 calls: Calls;
~~~~~
../node_modules/#types/jest/index.d.ts:1392:15 - error TS2428: All declarations of 'SpyAnd' must have identical type parameters.
1392 interface SpyAnd {
~~~~~~
../node_modules/#types/jest/index.d.ts:1425:15 - error TS2428: All declarations of 'Calls' must have identical type parameters.
1425 interface Calls {
~~~~~
../node_modules/#types/jest/index.d.ts:1451:16 - error TS2314: Generic type 'CallInfo' requires 1 type argument(s).
1451 all(): CallInfo[];
~~~~~~~~
../node_modules/#types/jest/index.d.ts:1456:23 - error TS2314: Generic type 'CallInfo' requires 1 type argument(s).
1456 mostRecent(): CallInfo;
~~~~~~~~
../node_modules/#types/jest/index.d.ts:1461:18 - error TS2314: Generic type 'CallInfo' requires 1 type argument(s).
1461 first(): CallInfo;
~~~~~~~~
../node_modules/#types/jest/index.d.ts:1468:15 - error TS2428: All declarations of 'CallInfo' must have identical type parameters.
1468 interface CallInfo {
~~~~~~~~
../node_modules/#types/jest/index.d.ts:1472:9 - error TS2717: Subsequent property declarations must have the same type. Property 'object' must be of type 'ThisType', but here has type 'any'.
1472 object: any;
~~~~~~
../node_modules/#types/jasmine/index.d.ts:1117:9
1117 object: ThisType;
~~~~~~
'object' was also declared here.
../node_modules/#types/jest/index.d.ts:1476:9 - error TS2717: Subsequent property declarations must have the same type. Property 'args' must be of type 'Parameters', but here has type 'any[]'.
1476 args: any[];
~~~~
../node_modules/#types/jasmine/index.d.ts:1119:9
1119 args: Parameters;
~~~~
'args' was also declared here.
../node_modules/#types/jest/index.d.ts:1480:9 - error TS2717: Subsequent property declarations must have the same type. Property 'returnValue' must be of type 'ReturnType', but here has type 'any'.
1480 returnValue: any;
~~~~~~~~~~~
../node_modules/#types/jasmine/index.d.ts:1121:9
1121 returnValue: ReturnType;
~~~~~~~~~~~
'returnValue' was also declared here.
../node_modules/#types/jest/index.d.ts:1484:9 - error TS2374: Duplicate index signature for type 'string'.
1484 [index: string]: CustomMatcherFactory;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/#types/jest/index.d.ts:1505:9 - error TS2687: All declarations of 'message' must have identical modifiers.
1505 message: string | (() => string);
~~~~~~~
../node_modules/#types/jest/index.d.ts:1505:9 - error TS2717: Subsequent property declarations must have the same type. Property 'message' must be of type 'string | undefined', but here has type 'string | (() => string)'.
1505 message: string | (() => string);
~~~~~~~
../node_modules/#types/jasmine/index.d.ts:460:9
460 message?: string | undefined;
~~~~~~~
'message' was also declared here.
../node_modules/#types/jest/index.d.ts:1510:9 - error TS2374: Duplicate index signature for type 'number'.
1510 [n: number]: T;
~~~~~~~~~~~~~~~
Found 30 errors in 2 files.
Errors Files
9 ../node_modules/#types/jasmine/index.d.ts:25
21 ../node_modules/#types/jest/index.d.ts:33
Error: functions predeploy error: Command terminated with non-zero exit code 2`
Should able to run firebase deploy --only functions directly.
Related
I am trying to use the standard deno fs module but the compiler complains without the --unstable flag.
import { writeJson, readJson } from "https://deno.land/std/fs/mod.ts";
const json = await readJson("input.txt");
console.log(`JSON: ${JSON.stringify(json)}`);
await writeJson("input.txt", json);
My deno version:
deno 1.0.0-rc2
v8 8.4.300
typescript 3.8.3
I always get the same errors. They seem to be related to missing modules but I'm not sure what could be missing.
➜ deno-api denoa filetest.ts
Compile file:///home/astone/source/deno-api/filetest.ts
error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, statInfo.atime, statInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:90:16
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:101:10
TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'.
await Deno.symlink(originSrcFilePath, dest, type);
~~~~~~~
at https://deno.land/std/fs/copy.ts:114:14
TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, statInfo.atime, statInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:119:16
TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'.
Deno.symlinkSync(originSrcFilePath, dest, type);
~~~~~~~~~~~
at https://deno.land/std/fs/copy.ts:132:8
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:137:10
TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:157:16
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:185:10
TS2339 [ERROR]: Property 'link' does not exist on type 'typeof Deno'.
await Deno.link(src, dest);
~~~~
at https://deno.land/std/fs/ensure_link.ts:28:14
TS2339 [ERROR]: Property 'linkSync' does not exist on type 'typeof Deno'.
Deno.linkSync(src, dest);
~~~~~~~~
at https://deno.land/std/fs/ensure_link.ts:52:8
TS2339 [ERROR]: Property 'symlink' does not exist on type 'typeof Deno'.
await Deno.symlink(src, dest, srcFilePathType);
~~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:31:14
TS2339 [ERROR]: Property 'symlinkSync' does not exist on type 'typeof Deno'.
Deno.symlinkSync(src, dest, srcFilePathType);
~~~~~~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:58:8
Found 12 errors.
If I only import the readJson module then I don't get errors.
import { readJson } from "https://deno.land/std/fs/read_json.ts";
I tried using a tag build but I can't seem to figure out the tag for 1.0.0-rc2. I tried https://deno.land/std#0.50.0/fs/mod.ts.
Deno.utime has been marked unstable, which is the reason why you should use --unstable flag
There's also an open issue: Property 'utime' does not exist on type 'typeof Deno' for this error.
Currently there are multiple APIs which are behind the unstable flag.
As of Deno 1.0.0, the Deno namespace APIs are stable. That means that
we will strive to make code working under 1.0.0 continue to work in
future versions.
However, not all of Deno's features are ready for production yet.
Features which are not ready because they are still in draft phase are
locked behind the --unstable command line flag.
The files that are using Deno.utime are copy.ts & ensure_symlink.ts which is the reason why if you only load read_json.ts you don't get that error, and don't need the unstable flag.
The latest tag for std/ is std/0.50.0 but you can always reference the github repo directly to whatever commit or release tag you want.
https://raw.githubusercontent.com/denoland/deno/{tag}/std/fs/read_json.ts
So you can use the following for your snippet:
import { readJson } from 'https://raw.githubusercontent.com/denoland/deno/v1.0.0-rc2/std/fs/read_json.ts'
import { writeJson } from 'https://raw.githubusercontent.com/denoland/deno/v1.0.0-rc2/std/fs/write_json.ts'
I am trying to create and use a simple dictionary using TFPGmap:
program rnTFPGmap;
{$mode objfpc}
uses fgl;
var
mydict: specialize TFPGmap<string, string>;
key: string;
i: longint;
begin
mydict.create;
mydict.add('k1','v1');
mydict.add('k2','v2');
mydict.add('k3','v3');
//for key in mydict.keys do {does not work either;}
for i := 1 to length(mydict) do {line 17: first error from here. }
writeln(mydict[i]);
end.
However, it is giving following error:
$ fpc soq_rntfpgmap
Free Pascal Compiler version 3.0.0+dfsg-11+deb9u1 [2017/06/10] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling soq_rntfpgmap.pas
soq_rntfpgmap.pas(17,16) Error: Type mismatch
soq_rntfpgmap.pas(18,19) Error: Incompatible type for arg no. 1: Got "LongInt", expected "ShortString"
soq_rntfpgmap.pas(22) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Edit: I tried to modify the code according to documentation and came up with following version:
program rnTFPGmap;
{$mode objfpc}
uses fgl;
type
tuple = specialize TFPGmap<string, string>;
mydict = Array of tuple;
var
dict: mydict;
i: tuple;
item: string;
begin
setlength(dict, length(dict)+3);
dict.add('k1','v1'); {error on this line: "CREATE" expected but "ADD" found}
dict.add('k2','v2');
dict.add('k3','v3');
writeln('dict.count: ', dict.count);
for i in dict do
writeln(i);
end.
But I am now getting following error:
$ fpc soq_rntfpgmap
Free Pascal Compiler version 3.0.0+dfsg-11+deb9u1 [2017/06/10] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling soq_rntfpgmap.pas
soq_rntfpgmap.pas(13,25) Warning: Variable "dict" of a managed type does not seem to be initialized
soq_rntfpgmap.pas(14,7) Fatal: Syntax error, "CREATE" expected but "ADD" found
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Not able to sort this out.
Following code works. See comments for some explanations:
program rnTFPGmap;
{$mode objfpc}
uses fgl;
type
Rndict = specialize TFPGmap<string, string>;{define type under type}
var
dict: Rndict; {define object under var}
i: integer;
{main: }
begin
dict := Rndict.Create; {create object in main}
dict.add('k1','v1');
dict.add('k2','v2');
dict.add('k3','v3');
for i := 0 to (dict.count-1) do begin
writeln('i: ',i, '; key: ', dict.getkey(i), '; value: ', dict.getdata(i));
end;
end.
Output:
i: 0; key: k1; value: v1
i: 1; key: k2; value: v2
i: 2; key: k3; value: v3
I thank #DavidHeffernan for his guidance.
I'm on win 7.
Code:
// #flow
import React from 'react';
import styled from 'styled-components';
Errors:
... many lines of errors
Error: node_modules/styled-components/lib/utils/create-broadcast.js.flow:20
20: listeners.forEach(listener => listener(currentValue))
^^^^^^^^^^^^ unused
function argument
10: subscribe: (listener: () => void) => () => void
^^^^^^^^^^ function type expects no arguments
Error: node_modules/styled-components/lib/utils/create-broadcast.js.flow:26
26: listener(currentValue)
^^^^^^^^^^^^ unused function argument
10: subscribe: (listener: () => void) => () => void
^^^^^^^^^^ function type expects no arguments
Error: node_modules/styled-components/lib/utils/getComponentName.js.flow:4
4: export default function getComponentName(target: ReactClass<*>): string {
^^^^^^^^^^^^^ identifier `ReactClass`. Could not resolve name
Found 24 errors
error Command failed with exit code 2
.flowconfig:
[ignore]
./build/.*
./node_modules/.*
[include]
[libs]
[lints]
[options]
suppress_comment=.*\\$FlowFixMe
[strict]
The package.json file is below:
"flow-typed": "^2.2.3",
"flow-bin": "^0.59.0",
"styled-components": "2.0.0",
Used project scaffold from https://github.com/react-boilerplate/react-boilerplate # 3.5.0
I saw in a comment to use libdef 1.4, but when I run yarn add --dev flow-typed#1.4 I only get version 1 or version 2.x.x, but no 1.4.
What to do next?
If you want flow to stop checking node_modules you can either ignore them in .flowconfig or include only your source files.
To ignore everything in node_modules:
[ignore]
.*/node_modules/.*
Pay attention:
These regular expressions match against absolute paths. They probably should start with .*
More info here
I am trying to build a docker from a fork and I am getting the following error when performing docker build ./:
cc1: all warnings being treated as errors
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
objs/Makefile:748: recipe for target 'objs/src/event/ngx_event_openssl.o' failed
make[1]: Leaving directory '/tmp/nginx/nginx-1.8.0'
make: *** [install] Error 2
On install we run
apt-get -y install libpcre3-dev zlib1g-dev libssl-dev openssl build-essential wget
I can't find this error on google. The full error for reference as I can't find out the exact error reference I need to research:
src/event/ngx_event_openssl.c: In function 'ngx_ssl_init':
src/event/ngx_event_openssl.c:112:5: error: 'OPENSSL_config' is deprecated [-Werror=deprecated-declarations]
OPENSSL_config(NULL);
^~~~~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:80,
from src/event/ngx_event_openssl.c:9:
/usr/include/openssl/conf.h:92:1: note: declared here
DEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))
^
src/event/ngx_event_openssl.c: In function 'ngx_ssl_rsa512_key_callback':
src/event/ngx_event_openssl.c:753:9: error: 'RSA_generate_key' is deprecated [-Werror=deprecated-declarations]
key = RSA_generate_key(512, RSA_F4, NULL, NULL);
^~~
In file included from /usr/include/openssl/rsa.h:13:0,
from /usr/include/openssl/x509.h:31,
from /usr/include/openssl/ssl.h:50,
from src/event/ngx_event_openssl.h:15,
from src/core/ngx_core.h:80,
from src/event/ngx_event_openssl.c:9:
/usr/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
src/event/ngx_event_openssl.c: In function 'ngx_ssl_dhparam':
src/event/ngx_event_openssl.c:943:11: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}'
dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
^~
src/event/ngx_event_openssl.c: In function 'ngx_ssl_handshake':
src/event/ngx_event_openssl.c:1164:31: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}'
if (c->ssl->connection->s3) {
^~
src/event/ngx_event_openssl.c: In function 'ngx_ssl_connection_error':
src/event/ngx_event_openssl.c:1913:21: error: 'SSL_R_NO_CIPHERS_PASSED' undeclared (first use in this function)
|| n == SSL_R_NO_CIPHERS_PASSED /* 182 */
^~~~~~~~~~~~~~~~~~~~~~~
src/event/ngx_event_openssl.c:1913:21: note: each undeclared identifier is reported only once for each function it appears in
src/event/ngx_event_openssl.c: In function 'ngx_ssl_session_cache':
src/event/ngx_event_openssl.c:2107:43: error: passing argument 2 of 'SSL_CTX_sess_set_get_cb' from incompatible pointer type [-Werror=incompatible-pointer-types]
SSL_CTX_sess_set_get_cb(ssl->ctx, ngx_ssl_get_cached_session);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/event/ngx_event_openssl.h:15:0,
from src/core/ngx_core.h:80,
from src/event/ngx_event_openssl.c:9:
/usr/include/openssl/ssl.h:637:6: note: expected 'SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, const unsigned char *, int, int *)}' but argument is of type 'SSL_SESSION * (*)(SSL *, u_char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, unsigned char *, int, int *)}'
void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,
^~~~~~~~~~~~~~~~~~~~~~~
src/event/ngx_event_openssl.c: In function 'ngx_ssl_session_id_context':
src/event/ngx_event_openssl.c:2129:27: error: storage size of 'md' isn't known
EVP_MD_CTX md;
^~
src/event/ngx_event_openssl.c:2195:5: error: implicit declaration of function 'EVP_MD_CTX_cleanup' [-Werror=implicit-function-declaration]
EVP_MD_CTX_cleanup(&md);
^~~~~~~~~~~~~~~~~~
src/event/ngx_event_openssl.c: In function 'ngx_ssl_session_ticket_key_callback':
src/event/ngx_event_openssl.c:2864:9: error: 'RAND_pseudo_bytes' is deprecated [-Werror=deprecated-declarations]
RAND_pseudo_bytes(iv, 16);
^~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/engine.h:19:0,
from src/event/ngx_event_openssl.h:22,
from src/core/ngx_core.h:80,
from src/event/ngx_event_openssl.c:9:
/usr/include/openssl/rand.h:47:1: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
cc1: all warnings being treated as errors
make[1]: *** [objs/src/event/ngx_event_openssl.o] Error 1
objs/Makefile:748: recipe for target 'objs/src/event/ngx_event_openssl.o' failed
make[1]: Leaving directory '/tmp/nginx/nginx-1.8.0'
make: *** [install] Error 2
This is the docker fork I am running https://github.com/meteorhacks/mup-frontend-server
You are getting various errors and warnings here, but they aren't really about Docker or OpenSSL. If we strip away the extraneous information, here are the problems you are encountering.
error: 'OPENSSL_config' is deprecated
error: 'RSA_generate_key' is deprecated
error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}'
error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}'
error: 'SSL_R_NO_CIPHERS_PASSED' undeclared (first use in this function)
error: passing argument 2 of 'SSL_CTX_sess_set_get_cb' from incompatible pointer type
error: storage size of 'md' isn't known
error: implicit declaration of function 'EVP_MD_CTX_cleanup'
error: 'RAND_pseudo_bytes' is deprecated
The core of the problem here is probably that you are using a legacy version of Nginx in this project. From the GitHub repository you pointed to, in install-nginx.sh:
NGINX_VERSION=1.8.0
The current mainline version of Nginx is 1.13.2. I haven't combed through the changelogs for Nginx, but based on the errors you are receiving, it seems likely that between the 1.8 releases and the current ones, OpenSSL has deprecated various functions that Nginx 1.8 relied on. Most likely this can be solved by moving to a recent release of Nginx.
As of this writing, 1.13.2 is the current mainline, and 1.12.0 is the current stable. One of those may work better. Whether you can simply drop this in, I can't say. You may have to change something in the build scripts or the nginx config for a more recent version to work properly.
you are getting this error because your nginx version don't support SSL 1.1.0. Either upgrade NGINX version or use SSL 1.0.2.
After updating composer, I started getting this error
Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface FOS\UserBundle\Util\PasswordUpdaterInterface, instance of Symfony\Component\Security\Core\Encoder\EncoderFactory given
in composer.json I have following bundles:
"require":{
"friendsofsymfony/user-bundle": "~2.0#dev",
"pugx/multi-user-bundle": "3.0.*#dev",
}
Full error:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must implement interface FOS\UserBundle\Util\PasswordUpdaterInterface, instance of Symfony\Component\Security\Core\Encoder\EncoderFactory given, called in /Users/juliezhanazar/PhpstormProjects/cofico-backend/vendor/pugx/multi-user-bundle/PUGX/MultiUserBundle/Doctrine/UserManager.php on line 47 in /Users/juliezhanazar/PhpstormProjects/cofico-backend/vendor/friendsofsymfony/user-bundle/Doctrine/UserManager.php:46
try change
"friendsofsymfony/user-bundle": "dev-master#49e3117888f8ed79a10afe5f0cb7a404c13b616c"