TypeScript Version: 2.2.1
Code
// presuming react-router@4.0.0-alpha.6 is installed
import Link from 'react-router/Link';
Note: Using pundle@2.0.0-beta12 to do bundling
tsconfig.json
{
"compilerOptions": {
"declaration": true,
"lib": [
"es2015",
"es2016",
"es2017",
"dom"
],
"importHelpers": true,
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitThis": true,
"sourceMap": true,
"strictNullChecks": true,
"target": "es6"
}
}
Expected behavior:
Link is imported to the local namespace.
Actual behavior:
Uncaught TypeError: Cannot assign to read only property '__esModule' of object '#<Object>'
at Object.<anonymous> (Link.js:3)
in Chrome 56.0.2924.87. Reverting to TypeScript@2.1.6 solves the issue.
TypeScript Version: 2.2.1
Code
Note: Using
pundle@2.0.0-beta12to do bundlingtsconfig.json{ "compilerOptions": { "declaration": true, "lib": [ "es2015", "es2016", "es2017", "dom" ], "importHelpers": true, "module": "commonjs", "moduleResolution": "node", "noImplicitAny": true, "noImplicitThis": true, "sourceMap": true, "strictNullChecks": true, "target": "es6" } }Expected behavior:
Linkis imported to the local namespace.Actual behavior:
in Chrome 56.0.2924.87. Reverting to TypeScript@2.1.6 solves the issue.