Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'tough-cookie' #1

Closed
ERmilburn02 opened this issue Jun 2, 2021 · 1 comment
Closed

Cannot find module 'tough-cookie' #1

ERmilburn02 opened this issue Jun 2, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ERmilburn02
Copy link

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
  ]
}
@Inrixia Inrixia added the bug Something isn't working label Jun 3, 2021
@Inrixia Inrixia self-assigned this Jun 3, 2021
@Inrixia
Copy link
Owner

Inrixia commented Jun 3, 2021

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.

@Inrixia Inrixia closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants