mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
746 B
Plaintext
20 lines
746 B
Plaintext
x.js(2,5): error TS6424: Multiple 'module.exports' assignments cannot be serialized for declaration emit.
|
|
x.js(5,5): error TS6424: Multiple 'module.exports' assignments cannot be serialized for declaration emit.
|
|
|
|
|
|
==== y.js (0 errors) ====
|
|
const x = require("./x");
|
|
const a = x.a;
|
|
const b = x.b;
|
|
|
|
==== x.js (2 errors) ====
|
|
if (!!true) {
|
|
module.exports = { a: 1 };
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS6424: Multiple 'module.exports' assignments cannot be serialized for declaration emit.
|
|
}
|
|
else {
|
|
module.exports = { b: "hello" };
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS6424: Multiple 'module.exports' assignments cannot be serialized for declaration emit.
|
|
} |