TS1202TS1202 — Import Assignment Not Allowed in Module
The import = require() syntax cannot be used in an ES module.
TS2531TypeScript warns that an expression could be null at runtime, and you are using it without checking.
When strictNullChecks is enabled, TypeScript tracks nullability. DOM methods like getElementById and querySelector return nullable types. Optional chaining and function returns can also produce nullable values.
Add a null check before using the value. Use the non-null assertion operator (!) if you are certain the value exists. Use optional chaining (?.) for safe property access. Provide a fallback value with the nullish coalescing operator (??).
const el = document.getElementById('x');
el.textContent = 'hi';TS1202The import = require() syntax cannot be used in an ES module.
TS2610A derived class defines a property where the base class has an accessor.
TS1375The await keyword is used inside a function that is not marked as async.
TS2367A comparison between two values will always be false because their types have no overlap.
TS2698The spread operator (...) is used on a value that may not be an object type.
TS1149An import declaration conflicts with the ambient context of the file.