Skip to content

Cannot find module 'qs' #6

@TwinkieLover

Description

@TwinkieLover

Env:

  • NPM 8.5.5
  • Node 16.4.2
  • TypeScript 4.5.5

Here is the import region from my ts file:

import http from "node:http";
import { SMSApi, SmsMessage, SmsMessageCollection } from "clicksend";
import { XSmsMessage } from "../entities";

Despite running rm -rf ./node_modules and npm clean cache -f in the event a package was installed incorrectly and still in NPM's cache, I am consistently experiencing this error:

Cannot find module 'qs' from '../../../node_modules/request/lib/querystring.js'

    Require stack:
      .../node_modules/request/lib/querystring.js
      .../node_modules/request/request.js
      .../node_modules/request/index.js
      .../node_modules/clicksend/api.js

Any idea what is happening here? Thanks.

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