question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve 'http' in 'C:\...\node_modules\@geckos.io\server\lib\geckos'

See original GitHub issue

Hello,

I am importing geckos in typescript with import geckos from '@geckos.io/server' the compiler then throws the Error: Can't resolve 'http' in 'C:\...\node_modules\@geckos.io\server\lib\geckos'

Am I missing something?

Thanks in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
0qlcommented, Jan 26, 2021

It works now. Thanks for the help. Great lib btw

0reactions
yandeucommented, Jan 26, 2021

Try to exclude all node_modules from the bundle. Use the package webpack-node-externals.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compile error after upgrading to 2.0.0 using TypeScript #114
I get the following error after building the project with the new 2.0.0 version. [ERROR] 11:38:21 Error: Must use import to load ES...
Read more >
Webpack 5 Errors - Cannot Resolve 'crypto', 'http', and 'https' in ...
The file is located in the client/src folders. This is what the errors look like: Compiled with problems: ERROR in ./node_modules ...
Read more >
5 Reasons Your Leopard Gecko Isn't Eating - Picky Geckos
If your leopard gecko won't eat any insects and begins losing weight, it's important to try and find the source of the issue...
Read more >
Why Your Crested Gecko Isn't Eating & Isn't Active - YouTube
Why Your Crested Gecko Isn't Eating & Isn't Active | HOW TO FIX THIS.
Read more >
How To Care For a Leopard Gecko - RSPCA
Never use 'caci-sand' or beech wood chips, as your leopard gecko can't safely eat these. What do leopard geckos eat, and when? Leopard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found