TypeError: Cannot read properties of undefined (reading 'verify')
at JwtWsAuthGuard.validateToken (/usr/src/app/dist/modules/auth/guards/jwt-ws-auth.guard.js:53:54)
at JwtWsAuthGuard.canActivate (/usr/src/app/dist/modules/auth/guards/jwt-ws-auth.guard.js:31:33)
at GuardsConsumer.tryActivate (/usr/src/app/node_modules/@nestjs/core/guards/guards-consumer.js:15:34)
at canActivateFn (/usr/src/app/node_modules/@nestjs/websockets/context/ws-context-creator.js:62:59)
at /usr/src/app/node_modules/@nestjs/websockets/context/ws-context-creator.js:50:37
at RoomGateway.<anonymous> (/usr/src/app/node_modules/@nestjs/websockets/context/ws-proxy.js:11:38)
at /usr/src/app/node_modules/@nestjs/platform-socket.io/adapters/io-adapter.js:36:34
at doInnerSub (/usr/src/app/node_modules/rxjs/src/internal/operators/mergeInternals.ts:71:15)
at outerNext (/usr/src/app/node_modules/rxjs/src/internal/operators/mergeInternals.ts:53:58)
at OperatorSubscriber._this._next (/usr/src/app/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts:70:13)
TypeError: Cannot read properties of undefined (reading 'verifyAsync')
at JwtWsAuthGuard.validateToken (/usr/src/app/dist/modules/auth/guards/jwt-ws-auth.guard.js:53:48)
at JwtWsAuthGuard.canActivate (/usr/src/app/dist/modules/auth/guards/jwt-ws-auth.guard.js:31:33)
at GuardsConsumer.tryActivate (/usr/src/app/node_modules/@nestjs/core/guards/guards-consumer.js:15:34)
at canActivateFn (/usr/src/app/node_modules/@nestjs/websockets/context/ws-context-creator.js:62:59)
at /usr/src/app/node_modules/@nestjs/websockets/context/ws-context-creator.js:50:37
at RoomGateway.<anonymous> (/usr/src/app/node_modules/@nestjs/websockets/context/ws-proxy.js:11:38)
at /usr/src/app/node_modules/@nestjs/platform-socket.io/adapters/io-adapter.js:36:34
at doInnerSub (/usr/src/app/node_modules/rxjs/src/internal/operators/mergeInternals.ts:71:15)
at outerNext (/usr/src/app/node_modules/rxjs/src/internal/operators/mergeInternals.ts:53:58)
at OperatorSubscriber._this._next (/usr/src/app/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts:70:13)
db:
image: postgres
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- '5432:5432'
networks:
- nesjs-network
volumes:
- ff-postgres:/var/lib/postgresql/data
FROM postgres:15.1
RUN apt-get update \
&& apt-get install wget -y \
&& apt-get install postgresql-15-postgis-3 -y \
&& apt-get install postgis -y
COPY ./db.sql /docker-entrypoint-initdb.d/
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS postgis_topology;
-- Reconnect to update pg_setting.resetval
-- See https://github.com/postgis/docker-postgis/issues/288
\c
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;
конфигурацию базы postgis сбрасывает до обычного голого postgresql без расширений postgis
watch(
() => location.value,
(newValue) => {
if (newValue) {
clearInterval(timer.value);
setTimeout(() => {
timer.value = setAddress(newValue);
}, 1000);
}
},
{ immediate: true }
);