Inrixia / floatplaneAPI.ts

Library for interfacing with the LMG Floatplane.com api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'tough-cookie'

ERmilburn02 opened this issue · comments

Attempting to install the npm package and then running the sample code from the usage section gives the following error:

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'tough-cookie'
Require stack:
- C:\Users\ERmil\tmp\fp\node_modules\floatplane\index.js
- C:\Users\ERmil\tmp\fp\index.js
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:952:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:88:18)←[39m
    at Object.<anonymous> (C:\Users\ERmil\tmp\fp\node_modules\←[4mfloatplane←[24m\index.js:8:24)
←[90m    at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:928:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:769:14)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:952:19)←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: [
    ←[32m'C:\\Users\\ERmil\\tmp\\fp\\node_modules\\floatplane\\index.js'←[39m,
    ←[32m'C:\\Users\\ERmil\\tmp\\fp\\index.js'←[39m
  ]
}

Thankyou, seems that a required dependency was set as only needed for dev and not being installed. This was fixed in 77961ae

I have also updated the example code to use a TS example and the exports to not use default so that its a bit nicer to use with normal JS if you aren't using TS.

Should all be fixed now.