-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Example webpack when yarn start - Module build failed: Error: Couldn't find preset "shopify/node" relative to directory ... #21
Comments
Was able to duplicate this |
Also reproducing this with Yarn 0.23.2, OSX 10.12.3, Node v7.7.1. The |
Hey @rafaedez, thanks for the issue. We've logged this issue internally; it will be solved in the next release. This issue is related to the babel-loader conflicting with the root level babel config. As @chrispappas mentioned, running a |
Hey guys, thanks for your help. yarn install Please make sure you have the correct access rights |
Hi @rafaedez that doesn't look like anything wrong with the framework - that's a transport error from yarn, looks like some kind of git/SSH authentication issue?
|
I'm having the same issue with version 1.0.2.. Any update on this? I'm also struggling trying to make it work with the fix proposed by @chrispappas since I'm having the same transport error reported by @rafaedez (I'm running the web app in a docker container).. |
UPDATE: I'm not able to understand why since the installed version of Polaris is still the same (1.0.2), but now it works.. 😅 |
Ha, I'm all too familiar with things magically starting to work at some point. Let us know if you have any more problems! |
I just thought of this, maybe your Docker containers don't have a github
token and you're hitting the api rate limits? It didn't look like that from
the errors you posted but just a thought.
I'm not running in a Docker container for the record, just a standard git
clone to a local Dir.
…On Thu, Apr 27, 2017, 9:13 AM Chris Sauvé ***@***.***> wrote:
Ha, I'm all too familiar with things magically starting to work at some
point. Let us know if you have any more problems!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEejE08HNQ_6qeGfAfP4nRPTvGbH9CYnks5r0KJxgaJpZM4NGTiU>
.
|
@lemonmade the issue is back again.. how? I don't know, I've just built the app with webpack as usual and it fails with the same error.. the only thing that I can think of that has changed is the fact that I added other node modules this week. |
Ehi @lemonmade any update on this? I can't make Polaris work on my project, I'm about to remove it from my project because otherwise I can't move forward. |
@Macs91 Which issue are you referring to? Earlier you mentioned that solved it after verifying you were on v1.0.2? |
@ismail-syed not exactly, when I first installed Polaris it was already on version 1.0.2.. I got it working somehow by doing |
I just re-cloned and did the following, everything seemed to work.
|
@Macs91 I'm having a little trouble understanding your issue, can you possible provide a minimal repo that reproduces the problem you are having? |
@lemonmade @ismail-syed here a minimal reproduction, I tried to remove everything that was not necessary: You can see the README for running the project and see what's the error.
|
Thanks for the repo, I'll take a look shortly. |
@Macs91 Took a look at your sample repo. In the context of that repo, this is a valid concern. I was presuming you were talking about the webpack example app. It seems that the babel config inside Thanks for bringing this to our attention 👍 |
@ismail-syed I apologize that I haven't clearly stated that I was working on a personal repo.. Thanks for taking care of this.. Do you have an estimated date for the next release? |
We should have it out early next week. As an aide, this line in your web pack config looks incorrect: https://github.com/macs91/polaris-issue/blob/master/webpack/common.webpack.config.js#L9. It doesn't look to be actually excluding node_modules (should just be a regex, not a string of a regex). Changing that should also resolve this issue for you (and speed up your builds considerably). |
@lemonmade I knew I had a problem with the webpack config since the bundle was too big, but I'm rushing to keep the project on schedule so I didn't take the time to figure out what was causing the issue 😅 Big thank you for pointing this out to me! 👍 👍 |
Issue summary
When I´m testing the example "polaris/examples/webpack/" show me the error: "Module build failed: Error: Couldn't find preset "shopify/node" relative to directory"
Actual behavior
Inside polaris/examples/webpack, after yarn install and yarn start show me an error: "Module build failed: Error: Couldn't find preset "shopify/node" relative to directory ..."
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: