Module not found: Error: Can't resolve 'https'
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- nodejs, typescript, webpack
- Bereich
- build-system
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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 }
- Vorherrschende Sprache
- TypeScript
- Sterne
- 95
- Forks
- 35
- Ø Merge
- 23 Std. 29 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus serpapi/serpapi-javascript
-
Timeout issuesOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
serpapi/serpapi-javascript#33 · 1 Kommentar · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 30/100
serpapi/serpapi-javascript#20 · 4 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
serpapi/serpapi-javascript#19 · 4 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Alle Issues in serpapi/serpapi-javascript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Doist/todoist-cli#576 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Suggestion: document (or optionally add) a cheaper-model config for find-skills on Claude CodeOffenfeature
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
vercel-labs/skills#2370 ·
Maintainer antworten meist innerhalb von 1 Tag
-
🐛 Bug supabase/cli
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
CopilotKit/aimock#491 ·
Maintainer antworten meist innerhalb von 1 Tag