Title: Error [ERR_REQUIRE_ESM]: require() of ES Module · Issue #459 · parse-community/parse-server-example · GitHub
Open Graph Title: Error [ERR_REQUIRE_ESM]: require() of ES Module · Issue #459 · parse-community/parse-server-example
X Title: Error [ERR_REQUIRE_ESM]: require() of ES Module · Issue #459 · parse-community/parse-server-example
Description: Hi Team, I am facing below error when i run "node index.js" warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version. warn: DeprecationWarning: The Parse Server optio...
Open Graph Description: Hi Team, I am facing below error when i run "node index.js" warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version. warn: De...
X Description: Hi Team, I am facing below error when i run "node index.js" warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in ...
Opengraph URL: https://github.com/parse-community/parse-server-example/issues/459
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error [ERR_REQUIRE_ESM]: require() of ES Module","articleBody":"Hi Team,\r\n\r\nI am facing below error when i run \"node index.js\"\r\n\r\nwarn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version.\r\nwarn: DeprecationWarning: The Parse Server option 'allowExpiredAuthDataToken' default will change to 'false' in a future version.\r\nwarn: DeprecationWarning: The Parse Server option 'encodeParseObjectInCloudFunction' default will change to 'true' in a future version.\r\nError [ERR_REQUIRE_ESM]: require() of ES Module /home/farhan/parse-server-example/cloud/main.js from /home/farhan/parse-server-example/node_modules/parse-server/lib/ParseServer.js not supported.\r\nmain.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which declares all .js files in that package scope as ES modules.\r\nInstead rename main.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change \"type\": \"module\" to \"type\": \"commonjs\" in /home/farhan/parse-server-example/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).\r\n\r\n at ParseServer.start (/home/farhan/parse-server-example/node_modules/parse-server/lib/ParseServer.js:146:13)\r\n at async file:///home/farhan/parse-server-example/index.js:36:3 {\r\n code: 'ERR_REQUIRE_ESM'\r\n}\r\n/home/farhan/parse-server-example/node_modules/parse-server/lib/ParseServer.js:146\r\n require(path.resolve(process.cwd(), cloud));\r\n ^\r\n\r\nError [ERR_REQUIRE_ESM]: require() of ES Module /home/farhan/parse-server-example/cloud/main.js from /home/farhan/parse-server-example/node_modules/parse-server/lib/ParseServer.js not supported.\r\nmain.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which declares all .js files in that package scope as ES modules.\r\nInstead rename main.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change \"type\": \"module\" to \"type\": \"commonjs\" in /home/farhan/parse-server-example/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).\r\n\r\n at ParseServer.start (/home/farhan/parse-server-example/node_modules/parse-server/lib/ParseServer.js:146:13)\r\n at async file:///home/farhan/parse-server-example/index.js:36:3 {\r\n code: 'ERR_REQUIRE_ESM'\r\n}","author":{"url":"https://github.com/farhanhu87","@type":"Person","name":"farhanhu87"},"datePublished":"2024-06-30T09:01:14Z","url":"https://github.com/parse-community/parse-server-example/issues/459"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:5ab441e4-a51e-a66c-d6ca-6a932b57060d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D82A:1FE579:2A6722:38D35A:6B03CA8A |
| html-safe-nonce | 4419887782e6c23ce8ea7aeb8a54b4244da794f50798ae361cb9a2acfdc71dbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJBOjFGRTU3OToyQTY3MjI6MzhEMzVBOjZCMDNDQThBIiwidmlzaXRvcl9pZCI6IjYwNjkzNjk5NDczNjMxOTk2MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 64e50a38f864bc499960810b001549c1bec57112872e2804f6803e6feac64a13 |
| hovercard-subject-tag | issue:2382158388 |
| 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/parse-community/parse-server-example/459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/084a51e7775deae1f6ac2f732c7dae38cd8615403b0610a396dd9219cc113791/parse-community/parse-server-example/issues/459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/084a51e7775deae1f6ac2f732c7dae38cd8615403b0610a396dd9219cc113791/parse-community/parse-server-example/issues/459 |
| og:image:alt | Hi Team, I am facing below error when i run "node index.js" warn: DeprecationWarning: The Parse Server option 'allowClientClassCreation' default will change to 'false' in a future version. warn: De... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | farhanhu87 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/parse-community/parse-server-example git https://github.com/parse-community/parse-server-example.git |
| octolytics-dimension-user_id | 26932219 |
| octolytics-dimension-user_login | parse-community |
| octolytics-dimension-repository_id | 50612192 |
| octolytics-dimension-repository_nwo | parse-community/parse-server-example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50612192 |
| octolytics-dimension-repository_network_root_nwo | parse-community/parse-server-example |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width