Hi,
I am facing issue Uncaught ReferenceError: require is not defined when compile the .ts file.
It converted into .js file having started from--
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Utils_1 = require("../Shared/Utils");
this is my tsconfig.json setting--
"target": "ES5",
"module": "commonjs",
"lib": ["ES2018", "dom"],
i have tried alot of step but still not solve. I am using typescript version 4.2.4.

Salman BegRank #284 · 8.8K reputationPosted May 14, 2021, 10:00 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted May 14, 2021, 10:58 AM EDT