-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something strange with default
in import useRelay from 'react-router-relay';
#192
Comments
It's because of https://github.com/nodkz/relay-northwind-app/blob/dd59c2e55d899dd8cdfb2d36571b5c4f4f5418d5/.babelrc#L28 react-router-relay exposes an ES2015 module build. If you're using webpack 2, but have module transpilation turned on in Babel, you're going to get the above error. I added that invariant in React Router exactly to catch this case. |
After reinstall So problem soved by applyRouterMiddleware(useRelay.default ? useRelay.default : useRelay) ... got answer! @taion thanks! |
@taion definitely needs an ability to setup |
Personally, I just don't transpile modules for my Node scripts in projects where I use webpack 2. Actually I don't really use Babel there at all in many cases given the broad ES2015 support in Node 6. |
Did you somehow alive How I know V8 does not support it yet. And PS. I'm using HMR on client/server, so for proper work of |
Oh, in that case consider using a server webpack bundle perhaps. |
Already use it. Thanks! |
You could also drop |
@taion I'm seeing this as well with Webpack 2. I have module compilation disabled in my babel-loader config: https://github.com/sfu/student-dashboard/blob/router/webpack.config.js#L53 Any ideas? |
You need to disable the use of |
Well, that was easy. Thanks! |
I'm started develop relay-northwind-app example app about 10 days ago.
All works perfectly before I make it public and got responses that it does not work. Crashed with the following error:
The text was updated successfully, but these errors were encountered: