Giter VIP home page Giter VIP logo

Comments (21)

ismail-syed avatar ismail-syed commented on August 27, 2024 1

Thanks for the repo, I'll take a look shortly.

from polaris.

ismail-syed avatar ismail-syed commented on August 27, 2024 1

@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 package.json is conflicting with external webpack builds. I have logged this internally, this will be fixed in our next release.

Thanks for bringing this to our attention ๐Ÿ‘

from polaris.

lemonmade avatar lemonmade commented on August 27, 2024 1

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).

from polaris.

JoshHighland avatar JoshHighland commented on August 27, 2024

Was able to duplicate this

from polaris.

chrispappas avatar chrispappas commented on August 27, 2024

Also reproducing this with Yarn 0.23.2, OSX 10.12.3, Node v7.7.1.

The yarn start command does work after doing a yarn install in the polaris project root (not just in the webpack example dir)

from polaris.

ismail-syed avatar ismail-syed commented on August 27, 2024

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 yarn install in the polaris project root will solve the issue.

from polaris.

rafaedez avatar rafaedez commented on August 27, 2024

Hey guys, thanks for your help.
I did the command "yarn install" in the polaris project root and happened the error:

yarn install
yarn install v0.23.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: clone ssh://[email protected]/Shopify/js-uploader.git C:\Users\rafae\AppData\Local\Yarn\cache\v1.tmp\74afd5bd502652853dcb8a9fbb429196
Directory: D:\Estudo\Reactjs\polaris
Output:
Cloning into 'C:\Users\rafae\AppData\Local\Yarn\cache\v1.tmp\74afd5bd502652853dcb8a9fbb429196'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

from polaris.

chrispappas avatar chrispappas commented on August 27, 2024

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?

Permission denied (publickey).
fatal: Could not read from remote repository.

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

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)..
When will this be fixed?

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

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.. ๐Ÿ˜…

from polaris.

lemonmade avatar lemonmade commented on August 27, 2024

Ha, I'm all too familiar with things magically starting to work at some point. Let us know if you have any more problems!

from polaris.

chrispappas avatar chrispappas commented on August 27, 2024

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

@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.
I've managed to make it work again by using @chrispappas solution, but it's clearly just a temporary solution ๐Ÿ˜ž

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

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.

from polaris.

ismail-syed avatar ismail-syed commented on August 27, 2024

@Macs91 Which issue are you referring to? Earlier you mentioned that solved it after verifying you were on v1.0.2?

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

@ismail-syed not exactly, when I first installed Polaris it was already on version 1.0.2.. I got it working somehow by doing yarn inside node_modules/@shopify/polaris... But of course this is a work-around and it does not always work.. I've tried also to do a fresh install of Polaris, but the error is still there: Couldn't find preset "shopify/node" relative to directory ...

from polaris.

ismail-syed avatar ismail-syed commented on August 27, 2024

I just re-cloned and did the following, everything seemed to work.

$ cd polaris/examples/webpack
$ yarn install 
$ yarn start

from polaris.

lemonmade avatar lemonmade commented on August 27, 2024

@Macs91 I'm having a little trouble understanding your issue, can you possible provide a minimal repo that reproduces the problem you are having?

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

@lemonmade @ismail-syed here a minimal reproduction, I tried to remove everything that was not necessary:
https://github.com/macs91/polaris-issue

You can see the README for running the project and see what's the error.

Note: I'm running on Node 7.7.4 but there shouldn't be issues with lower version

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

@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?

from polaris.

dhmacs avatar dhmacs commented on August 27, 2024

@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! ๐Ÿ‘ ๐Ÿ‘

from polaris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.