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
Error when building with webpack #420
Comments
Hi @sunjay Have you installed all dependencies of the client and the server? |
That should happen automatically with npm install shouldn't it? |
It should, but we haven't seen this problem before, so I'm trying to find out what might be going wrong. |
Ok, I might have been confused. This is your own webpack configuration that you're using right? |
@deontologician Yes. Let me give you some more detailed information. I have a simple project setup to build with webpack. Here is my webpack config file:
Webpack essentially builds the application bundle, places it in the My
I copied this code from the index.html file generated and used the The problem is that when I run my webpack build, I get this error:
This error is not in my code. It has to do with a line in fetch.js which is using the webpack This is a bug because I can't build using |
I get a similar error with webpack, but mine reads "imports" instead of "exports" My webpack config is even simpler |
I also ran into this. It was my mistake - we have to add import/exports A solution for now is to install exports-loader and imports-loader manually EDIT: here #437 |
Same problem here using webpack: ERROR in ./~/@horizon/client/lib/util/fetch.js
Module not found: Error: Cannot resolve module 'imports' in /Users/hnordt/workspace/healthware_app/node_modules/@horizon/client/lib/util
@ ./~/@horizon/client/lib/util/fetch.js 13:0-69 |
+1 |
I have the same error and I'm not using webpack, I just tried to import it from node. Installing the dependencies doesn't fix it only commenting out the
|
If you're using node, import the version from |
When i do, it doesnt seem to connect or anything. fredag 27 maj 2016 skrev Josh Kuhn notifications@github.com:
|
@deontologician Has this fix been released? |
not yet On Sat, Jun 4, 2016, 21:50 Sunjay Varma notifications@github.com wrote:
|
What is the current status? I still can't use horizon client because of this bug.. |
Try the version on the next branch in github. We've removed the fetch On Sun, Jul 17, 2016, 14:09 StefanSchwartze notifications@github.com
|
How can I install that version? npm install @horizon/client@2.0.0 and git+ssh://git@github.com:rethinkdb/horizon.git#2.0.0 didn't work for me.. |
we havent tagged 2.0 yet, you'll probably need to check it out and build it On Sun, Jul 17, 2016, 17:05 StefanSchwartze notifications@github.com
|
Server Version: 1.0.1
Client Version: 1.0.1
Installed client with
npm install @horizon/client
I am following the second option in the instructions for Integrating Horizon.
I'm seeing the error above. I installed
@horizon/client
and attempted to build it within my existing setup. Apparently this has something to do with the imports loader. Installingimports-loader
in my project doesn't fix the problem.In fetch.js:
That is the problem line.
My code is exactly the example on the
@horizon/client
npm page:The text was updated successfully, but these errors were encountered: