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.

node core http2 not resolved

See original GitHub issue

For the import

const http2 = require('http2');

I get import/no-extraneous-dependencies and import/no-unresolved warnings, but http2 is part of the node core.

Enviroment setting in package.json:

     "env": {
       "es6": true,
       "node": true
     },

node 8.7.0 eslint 4.9.0 eslint-plugin-import 2.7.0 eslint-import-resolver-node 0.3.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shellscapecommented, Jan 5, 2018

@ljharb yeah thanks for the patience on that one. for whatever reason, the new version magically fixes it. blowing everything away (package-lock included) didn’t have a positive effect. fairly certain that it was a wonky edge case.

0reactions
ljharbcommented, Jan 5, 2018

Either way, v0.3.2 is released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module 'http2' not found · Issue #610 · grpc/grpc-node - GitHub
In my case the reason for "Module 'http2' not found" error was too old version of node - 8.4.x - set in package.json...
Read more >
Http2 Dependency not found - Help - Fauna Forums
Now when I try to launch my dev server I get an error: This dependency was not found: http2 in ./node_modules/faunadb/src/_http/http2Adapter ...
Read more >
HTTP/2 in Node.JS Core - Level Up Coding
HTTP/2 is still considered to be experimental and despite the fact it is still not 100% finished, you can already start experimenting with...
Read more >
How to Polyfill node core modules in webpack 5
This was resolved simply by installing the buffer package with npm install -D buffer . 'fs'. Module not found: Error: Can't resolve 'fs ......
Read more >
HTTP/2 | Node.js v19.3.0 Documentation
The following illustrates a simple HTTP/2 server using the Core API. Since there are no browsers known that support unencrypted HTTP/2, the use...
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