Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Typescript 2.0 - react-dom.server.d.ts not found - works in tsloader #224

Closed
admmasters opened this issue Sep 4, 2016 · 7 comments
Closed

Comments

@admmasters
Copy link

Using TS 2.0RC and the new @types typings - specifically node_modules/@types/react-dom/react-dom.server.d.ts does not get found during build - even though the file is clearly there and loads with ts-loader.

@mattoni
Copy link

mattoni commented Sep 4, 2016

Having the same issue. Been banging my head against the wall trying to track down the source (error message wasn't very clear) and haven't been able to find a version that works.

@thrandre
Copy link

thrandre commented Sep 5, 2016

More people having the same issue reported on #205. Temporary workaround: Remove /// <reference path="react-dom.server.d.ts" /> in @types/react-dom/index.d.ts.

@narkowicz
Copy link

I also stumbled on this issue last week. Rather than modifying untracked files in node_modules I found that manually adding the problematic path to "files": [...] in tsconfig.json provides a workaround for the issue.

i.e. "files": [ "node_modules/@types/react-dom/react-dom.server.d.ts" ]

tsconfig.json supports comments so workaround can be documented, relevant issues linked and a note left to clean up when a fix is implemented.

@thrandre
Copy link

thrandre commented Sep 5, 2016

@narkowicz: That's great! Thanks for sharing. Your workaround is however not working for me.

@s-panferov
Copy link
Owner

I'll take a look soon

@narkowicz
Copy link

@thrandre That's a shame - these ts / webpack setups can be so idiosyncratic!

@robmcm
Copy link

robmcm commented Oct 27, 2016

Is there a planned release with this patch in? Would be good to get it released and save having to add it as a git dependency in npm. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants