Skip to content

Commit 8fc73af

Browse files
committed
A quick fix
1 parent 7204a18 commit 8fc73af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import express from 'express';
33
import bodyParser from 'body-parser';
44
import cors from 'cors';
5-
import pkg from '../package.json' assert { type: 'json' };
5+
import { createRequire } from 'module';
6+
const require = createRequire(import.meta.url);
7+
const pkg = require('../package.json');
68
/*** Importing custom error handlers and logger middleware ***/
79
import {
810
handle404 /*** @params: req, res, next ***/,

0 commit comments

Comments
 (0)