Failed to download related modules
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, webpack
- Domain
- build-system
Research direction
Reproduce the failure using webpack.config.js and src/index.js with the shown Node.js and webpack versions. Start at the import-http/webpack entry point and trace how related module URLs are formed. Done means webpack downloads those modules without malformed unpkg.com paths or the reported Module not found errors.
Written by the indexing model from the issue text.
Description
node.js: v9.2.0
webpack: v4.29.6
There is a problem with downloading related modules. Output below:
webpack.config.js
const ImportHttpWebpackPlugin = require('import-http/webpack')
module.exports = {
plugins: [new ImportHttpWebpackPlugin()]
}
src/index.js
import request from 'https://unpkg.com/axios'
const result = request.get('https://google.com');
console.log(result);
~$ webpack
pako@b00s:~/projects/testrevolution/testrevolution/extension/test$ /home/pako/projects/testrevolution/testrevolution/extension/node_modules/.bin/webpack
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/browserify-zlib/lib/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/assert/assert.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/browserify-zlib/lib/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/browserify-zlib/lib/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/browserify-zlib/lib/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/https-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/url/url.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-http/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-browserify/index.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/assert/assert.js...
Downloading https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/assert/assert.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/stream-browserify/index.js...
Failed to download https://unpkg.com//home/pako/projects/testrevolution/testrevolution/extension/node_modules/assert/assert.js...
Hash: e7cdd1139d49c8d453d6
Version: webpack 4.29.6
Time: 1935ms
Built at: 2019-03-19 21:41:22
1 asset
Entrypoint main = main.js
[0] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/utils 7.36 KiB {0} [built]
[1] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults 2.38 KiB {0} [built]
[3] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/helpers/bind 256 bytes {0} [built]
[9] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/cancel/isCancel 102 bytes {0} [built]
[10] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/cancel/Cancel 385 bytes {0} [built]
[11] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 40 bytes {0} [built]
[12] ./src/index.js 117 bytes {0} [built]
[13] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios 1.34 KiB {0} [built]
[14] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 301 bytes {0} [built]
[15] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/core/Axios 2.14 KiB {0} [built]
[16] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/helpers/normalizeHeaderName 357 bytes {0} [built]
[17] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/xhr 6.03 KiB {0} [built]
[22] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http 7.17 KiB {0} [built]
[35] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/cancel/CancelToken 1.21 KiB {0} [built]
[36] /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/helpers/spread 564 bytes {0} [built]
+ 22 hidden modules
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http 11:11-26
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http 7:12-28
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http 10:10-24
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http 6:11-26
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 4:12-28
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 1:10-24
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 3:11-26
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 6:15-32
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
ERROR in /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
Module not found: Error: Not Found
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js 5:13-30
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/adapters/http
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/defaults
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/lib/axios
@ /home/pako/.cache/import-http/deps/https/unpkg.com/[email protected]/index.js
@ ./src/index.js
pako@b00s:~/projects/testrevolution/testrevolution/extension/test$
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from egoist/import-http
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
egoist/import-http#40 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
egoist/import-http#33 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
egoist/import-http#29 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
egoist/import-http#25 · 2 comments ·
-
Use for assetsOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
egoist/import-http#19 · 1 comment ·
All issues in egoist/import-http
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: tests help wanted size/s
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
DahanItamar/DockNest#368 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100