Title: Module not found: Error: Can't resolve 'https' · Issue #24 · serpapi/serpapi-javascript · GitHub
Open Graph Title: Module not found: Error: Can't resolve 'https' · Issue #24 · serpapi/serpapi-javascript
X Title: Module not found: Error: Can't resolve 'https' · Issue #24 · serpapi/serpapi-javascript
Description: 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 u...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/serpapi/serpapi-javascript/issues/24
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Module not found: Error: Can't resolve 'https'","articleBody":"I get these error message for node v20\r\nERROR in ./node_modules/serpapi/esm/src/utils.js 2:0-26\r\nModule not found: Error: Can't resolve 'https' in '/Users/yasaman/Desktop/safariz/node_modules/serpapi/esm/src'\r\n\r\nBREAKING CHANGE: webpack \u003c 5 used to include polyfills for node.js core modules by default.\r\nThis is no longer the case. Verify if you need this module and configure a polyfill for it.\r\n\r\nIf you want to include a polyfill, you need to:\r\n\t- add a fallback 'resolve.fallback: { \"https\": require.resolve(\"https-browserify\") }'\r\n\t- install 'https-browserify'\r\nIf you don't want to include a polyfill, you can use an empty module like this:\r\n\tresolve.fallback: { \"https\": false }\r\nERROR in ./node_modules/serpapi/esm/src/utils.js 3:0-29\r\nModule not found: Error: Can't resolve 'querystring' in '/Users/yasaman/Desktop/safariz/node_modules/serpapi/esm/src'\r\n\r\nBREAKING CHANGE: webpack \u003c 5 used to include polyfills for node.js core modules by default.\r\nThis is no longer the case. Verify if you need this module and configure a polyfill for it.\r\n\r\nIf you want to include a polyfill, you need to:\r\n\t- add a fallback 'resolve.fallback: { \"querystring\": require.resolve(\"querystring-es3\") }'\r\n\t- install 'querystring-es3'\r\nIf you don't want to include a polyfill, you can use an empty module like this:\r\n\tresolve.fallback: { \"querystring\": false }","author":{"url":"https://github.com/Yasaman-k","@type":"Person","name":"Yasaman-k"},"datePublished":"2024-11-03T11:59:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/24/serpapi-javascript/issues/24"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e8a2ad6-8efa-bb49-0ae6-953f048e1fb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C46C:36DB8C:F952A3:1448E3C:698FFE7B |
| html-safe-nonce | de571da3fdbfe057e0cefc6a53d4da64f343ece5ae3166f5728a2f6ffc3e70f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDZDOjM2REI4QzpGOTUyQTM6MTQ0OEUzQzo2OThGRkU3QiIsInZpc2l0b3JfaWQiOiI0MTA4MDA5OTk1NjAxMTgyMzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17b3375a5360e480b9a639fcb6aa546d80d82e7955b6de5602f7faa20aaabc0b |
| hovercard-subject-tag | issue:2631167200 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/serpapi/serpapi-javascript/24/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f6c6319f25e9701edde3b93fe0a21def08167ce0c14b45e5c618a960d4df0b1/serpapi/serpapi-javascript/issues/24 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f6c6319f25e9701edde3b93fe0a21def08167ce0c14b45e5c618a960d4df0b1/serpapi/serpapi-javascript/issues/24 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yasaman-k |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/serpapi/serpapi-javascript git https://github.com/serpapi/serpapi-javascript.git |
| octolytics-dimension-user_id | 34724717 |
| octolytics-dimension-user_login | serpapi |
| octolytics-dimension-repository_id | 572882308 |
| octolytics-dimension-repository_nwo | serpapi/serpapi-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572882308 |
| octolytics-dimension-repository_network_root_nwo | serpapi/serpapi-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width