-
Notifications
You must be signed in to change notification settings - Fork 787
Warnings when building with webpack #597
Comments
I'm seeing the exact same problem using basically the same versions of react-apollo, typescript and webpack (I don't have apollo-client as a direct dependency since the guide didn't mention it). I'm on node v6.10.1 and npm v3.10.10. |
I'm seeing the same issues using: When using those versions I also got some other errors about duplicate definitions but after downgrading to [email protected] those went away but the "Cannot find source file" warnings are still present. |
I just noticed something, our output says: Something tells me it's some error in our webpack/typescript configs with how they allow module resolving? |
I found the problem in my build config based on this thread angular-redux/store#64. In my webpack config I have the source-maps-loader but didn't exclude node_modules and this seemed to be causing the issue. Adding the exclude fixed it for me. |
Yes, that did it :) Thanks! |
Hi @ramzeus! Sorry for the late response. Has this issue been resolved for you? |
@helfer Yes, it was resolved. |
@miltonhultgren Can you show me, how did you exlude the node_modules ? It doens't work for me |
@miltonhultgren My module rule looks something like this. Hope it can help you:
|
I am trying to build a simple tool with typescript, react and apollo.
But when I follow the guidelines on how to use react-apollo I get a lot of warnings when building my app with webpack.
I'm not sure if this is a bug or of this is something that is I am misunderstanding. But hopefully someone can give me a hint(?)
Steps to Reproduce
This is the react entry point code (works without any warnings):
When I add this I get the warnings:
Buggy Behavior
There are warnings I know nothing about...
Expected Behavior
No warnings
Version
The text was updated successfully, but these errors were encountered: