We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7204a18 commit 8fc73afCopy full SHA for 8fc73af
src/app.js
@@ -2,7 +2,9 @@
2
import express from 'express';
3
import bodyParser from 'body-parser';
4
import cors from 'cors';
5
-import pkg from '../package.json' assert { type: 'json' };
+import { createRequire } from 'module';
6
+const require = createRequire(import.meta.url);
7
+const pkg = require('../package.json');
8
/*** Importing custom error handlers and logger middleware ***/
9
import {
10
handle404 /*** @params: req, res, next ***/,
0 commit comments