소개
게시글
질문&답변
로그인시 데이터를 못 가져옵니다. 500에러
(사진)
- 0
- 2
- 570
질문&답변
로그인시 데이터를 못 가져옵니다. 500에러
(사진)서버쪽 에러인듯 한데, 기존 큐엔에이에서 같은 질문이 있더라구요,, 근데 답변을 봐도 이해가 가지않아서 어떻게 해야할지 자세히 설명해주실 수 있을까요?ㅜㅜ 참고로 mysql pass워드는 .env인식이 안되어서 config.js에 직접 넣어주었습니다. (사진)해당 답변을 보았는데 express모듈에서 어디를 고쳐야 하나요? // Type definitions for Express 4.17 // Project: http://expressjs.com // Definitions by: Boris Yankov // China Medical University Hospital // Puneet Arora // Dylan Frankland // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== import express = require("express"); var app = express(); =============================================== */ /// /// import * as bodyParser from 'body-parser'; import * as serveStatic from 'serve-static'; import * as core from 'express-serve-static-core'; import * as qs from 'qs'; /** * Creates an Express application. The express() function is a top-level function exported by the express module. */ declare function e(): core.Express; declare namespace e { /** * This is a built-in middleware function in Express. It parses incoming requests with JSON payloads and is based on body-parser. * @since 4.16.0 */ var json: typeof bodyParser.json; /** * This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser. * @since 4.17.0 */ var raw: typeof bodyParser.raw; /** * This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser. * @since 4.17.0 */ var text: typeof bodyParser.text; /** * These are the exposed prototypes. */ var application: Application; var request: Request; var response: Response; /** * This is a built-in middleware function in Express. It serves static files and is based on serve-static. */ var static: serveStatic.RequestHandlerConstructor; /** * This is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser. * @since 4.16.0 */ var urlencoded: typeof bodyParser.urlencoded; /** * This is a built-in middleware function in Express. It parses incoming request query parameters. */ export function query(options: qs.IParseOptions | typeof qs.parse): Handler; export function Router(options?: RouterOptions): core.Router; interface RouterOptions { /** * Enable case sensitivity. */ caseSensitive?: boolean | undefined; /** * Preserve the req.params values from the parent router. * If the parent and the child have conflicting param names, the child’s value take precedence. * * @default false * @since 4.5.0 */ mergeParams?: boolean | undefined; /** * Enable strict routing. */ strict?: boolean | undefined; } interface Application extends core.Application {} interface CookieOptions extends core.CookieOptions {} interface Errback extends core.Errback {} interface ErrorRequestHandler = Record > extends core.ErrorRequestHandler {} interface Express extends core.Express {} interface Handler extends core.Handler {} interface IRoute extends core.IRoute {} interface IRouter extends core.IRouter {} interface IRouterHandler extends core.IRouterHandler {} interface IRouterMatcher extends core.IRouterMatcher {} interface MediaType extends core.MediaType {} interface NextFunction extends core.NextFunction {} interface Request = Record > extends core.Request {} interface RequestHandler = Record > extends core.RequestHandler {} interface RequestParamHandler extends core.RequestParamHandler {} export interface Response = Record> extends core.Response {} interface Router extends core.Router {} interface Send extends core.Send {} } export = e;
- 0
- 2
- 570
질문&답변
component에서 에러
노드 파일 지우고 react-router-dom도 지우고 패키지 최신버전으로 다시깔고, 다시껐다 켰더니 됩니다. 도와주셔서 감사해요 ㅜㅜ
- 0
- 2
- 299