GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — errors: simplify ERR_REQUIRE_ESM message generation · nodejs/node@4bde865

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • errors.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/errors.js‎

Copy file name to clipboardExpand all lines: lib/internal/errors.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ E('ERR_REQUIRE_ESM',
13031303
filename : path.basename(filename);
13041304
msg +=
13051305
'\nrequire() of ES modules is not supported.\nrequire() of ' +
1306-
`${filename} ${parentPath ? `from ${parentPath} ` : ''}` +
1306+
`${filename} from ${parentPath} ` +
13071307
'is an ES module file as it is a .js file whose nearest parent ' +
13081308
'package.json contains "type": "module" which defines all .js ' +
13091309
'files in that package scope as ES modules.\nInstead rename ' +

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.