Can't resolve 'http' in 'C:\...\node_modules\@geckos.io\server\lib\geckos'
See original GitHub issueHello,
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:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works now. Thanks for the help. Great lib btw
Try to exclude all
node_modules
from the bundle. Use the package webpack-node-externals.