Module not found: Error: Can't resolve 'https'
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- nodejs, typescript, webpack
- 领域
- build-system
调研方向
Reproduce the Node v20 webpack build and inspect node_modules/serpapi/esm/src/utils.js, where the missing https and querystring modules are reported. Determine whether the package or consuming build is expected to provide the resolution, then verify that the build completes without these errors.
由索引模型根据 Issue 内容生成。
描述
I get these error message for node v20
ERROR in ./node_modules/serpapi/esm/src/utils.js 2:0-26
Module not found: Error: Can't resolve 'https' in '/Users/yasaman/Desktop/safariz/node_modules/serpapi/esm/src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
- install 'https-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "https": false }
ERROR in ./node_modules/serpapi/esm/src/utils.js 3:0-29
Module not found: Error: Can't resolve 'querystring' in '/Users/yasaman/Desktop/safariz/node_modules/serpapi/esm/src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "querystring": require.resolve("querystring-es3") }'
- install 'querystring-es3'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "querystring": false }
- 主要语言
- TypeScript
- 星标
- 104
- 派生
- 36
- 平均合并
- 4 天 23 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
serpapi/serpapi-javascript 的其他 Issue
-
Default client timeout (60s) is shorter than the server-side timeout (90s)可能已有人在做 @Babyy-dev 于 7 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
-
asistencias.py未关闭
难度 2/5 1 小时以内 新手友好度 15/100
-
Deno deprecation可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 50/100
serpapi/serpapi-javascript#55 · 2 条评论 ·
-
Timeout issues未关闭
难度 4/5 3-5 天 新手友好度 25/100
-
types are extremely poor without coverage.可能已有人在做 @nya-a-cat 于 152 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
serpapi/serpapi-javascript#33 · 1 条评论 · 1 个 reaction ·
查看 serpapi/serpapi-javascript 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
OHDSI/Data2Evidence#3749 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 1 天内回复
-
bug severity:low triage:confirmed triage:in-progress
难度 2/5 1-3 小时 新手友好度 76/100
Cotal-AI/Cotal#10749 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-atl
难度 1/5 1 小时以内 新手友好度 88/100
GoogleChrome/modern-web-guidance-src#3726 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/rhdh-plugin-export-overlays#4935 · 1 条评论 ·
维护者通常 1 天内回复