| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5405e62 commit 548137f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1296,7 +1296,7 @@ E('ERR_REQUIRE_ESM', | |||
| 1296 | 1296 | filename : path.basename(filename); | |
| 1297 | 1297 | msg += | |
| 1298 | 1298 | '\nrequire() of ES modules is not supported.\nrequire() of ' + | |
| 1299 | - `${filename} ${parentPath ? `from ${parentPath} ` : ''}` + | ||
| 1299 | + `${filename} from ${parentPath} ` + | ||
| 1300 | 1300 | 'is an ES module file as it is a .js file whose nearest parent ' + | |
| 1301 | 1301 | 'package.json contains "type": "module" which defines all .js ' + | |
| 1302 | 1302 | 'files in that package scope as ES modules.\nInstead rename ' + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments