Skip to content

Module not found: Error: Can't resolve 'cookie-parser' #938

@Y-Less

Description

@Y-Less

Note: This is just a template, so feel free to use/remove the unnecessary things

Description

  • Type: Bug

Bug

Expected Behavior
Runs the server
Actual Behavior

ERROR in ../server/init/express.js
Module not found: Error: Can't resolve 'cookie-parser' in 'D:\work\redacted\reactGo\server\init'
resolve 'cookie-parser' in 'D:\work\redacted\reactGo\server\init'
  Parsed request is a module
  using description file: D:\work\redacted\reactGo\package.json (relative path: ./server/init)
  after using description file: D:\work\redacted\reactGo\package.json (relative path: ./server/init)
    resolve as module
      looking for modules in D:\work\redacted\reactGo\app
        using description file: D:\work\redacted\reactGo\package.json (relative path: ./app)
        after using description file: D:\work\redacted\reactGo\package.json (relative path: ./app)
          using description file: D:\work\redacted\reactGo\package.json (relative path: ./app/cookie-parser)
            no extension
              D:\work\redacted\reactGo\app\cookie-parser doesn't exist
            .js
              D:\work\redacted\reactGo\app\cookie-parser.js doesn't exist
            .jsx
              D:\work\redacted\reactGo\app\cookie-parser.jsx doesn't exist
            .css
              D:\work\redacted\reactGo\app\cookie-parser.css doesn't exist
            as directory
              D:\work\redacted\reactGo\app\cookie-parser doesn't exist
      looking for modules in D:\work\redacted\reactGo\node_modules
        using description file: D:\work\redacted\reactGo\package.json (relative path: ./node_modules)
        after using description file: D:\work\redacted\reactGo\package.json (relative path: ./node_modules)
          using description file: D:\work\redacted\reactGo\package.json (relative path: ./node_modules/cookie-parser)
            no extension
              D:\work\redacted\reactGo\node_modules\cookie-parser doesn't exist
            .js
              D:\work\redacted\reactGo\node_modules\cookie-parser.js doesn't exist
            .jsx
              D:\work\redacted\reactGo\node_modules\cookie-parser.jsx doesn't exist
            .css
              D:\work\redacted\reactGo\node_modules\cookie-parser.css doesn't exist
            as directory
              D:\work\redacted\reactGo\node_modules\cookie-parser doesn't exist
[D:\work\redacted\reactGo\app\cookie-parser]
[D:\work\redacted\reactGo\app\cookie-parser.js]
[D:\work\redacted\reactGo\app\cookie-parser.jsx]
[D:\work\redacted\reactGo\app\cookie-parser.css]
[D:\work\redacted\reactGo\app\cookie-parser]
[D:\work\redacted\reactGo\node_modules\cookie-parser]
[D:\work\redacted\reactGo\node_modules\cookie-parser.js]
[D:\work\redacted\reactGo\node_modules\cookie-parser.jsx]
[D:\work\redacted\reactGo\node_modules\cookie-parser.css]
[D:\work\redacted\reactGo\node_modules\cookie-parser]
 @ ../server/init/express.js 23:20-44
 @ ../server/index.js

Steps to Reproduce

  • Clone a new copy.
  • npm install
  • npm run dev

Enhancement

Reason to enhance/problem with existing solution
The reason to enhance this is so the code runs.
Suggested enhancement

Pros

Cons


Question

How to?
Fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions