Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error while building a Typescript 2.1.4 project (React, Webpack, Babel) #12749

Copy link
Copy link
@ottoo

Description

@ottoo
Issue body actions

TypeScript Version: 2.1.4

ERROR in ./src/index.tsx
Module build failed: SyntaxError: /Users/xxx/src/index.tsx: Unexpected token (11:28)
9 | var store = store_1["default"]();
  10 | function render() {
> 11 |     ReactDOM.render((<Root_1["default"] store={store}/>), document.getElementById('app-container'));
     |                             ^
  12 | }
  13 | render();
  14 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanN4Iiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw2QkFBK0I7QUFDL0Isb0NBQXNDO0FBRXRDLDZCQUEy
/Users/xxx/node_modules/typescript/lib/typescript.js:3177
                throw new Error("Debug Failure. False expression: " + (message || "") + verboseDebugString);
                ^

Error: Debug Failure. False expression: File  has unknown extension.

We upgraded to Typescript 2.1.4 and this error happens when building our project with webpack. We are using React 15.4.1 and babel 6.18.0.

After rolling back to the old version we used everything works normally (2.0.3).

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.