Comments (21)
Thanks for the repo, I'll take a look shortly.
from polaris.
@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.
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.
Was able to duplicate this
from polaris.
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.
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.
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.
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.
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.
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.
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.
from polaris.
@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.
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.
@Macs91 Which issue are you referring to? Earlier you mentioned that solved it after verifying you were on v1.0.2?
from polaris.
@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.
I just re-cloned and did the following, everything seemed to work.
$ cd polaris/examples/webpack
$ yarn install
$ yarn start
from polaris.
@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.
@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.
@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.
@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)
- How to customize theme colors
- Refactor ContextualButton to use `BorderGradient` HOT 1
- Popover Activator not aligned in an InlineStack HOT 4
- Tooltip's children alignment have changed unexpectedly
- ChoiceList in a BlockStack renders an empty space below it in Safari
- [polaris.shopify.com] Feedback (on /components/tables/index-table?example=index-table-with-pagination-and-bulk-actions)
- Jest test fail when upgrading from v13.8.0 to v13.9.0
- [polaris.shopify.com] Feedback (on /patterns/date-picking/single-date)
- Legacy card is Deprecated but still Index table is using Legacy Card, and UI of table is effect HOT 1
- Icons on Orders index have inconsistent alignment. HOT 1
- Clicking on frame causes an outline beside the nav
- Add monorail to footer actions and save bar HOT 2
- Page 'backAction' does not support navigating to Shopify admin HOT 1
- Custom scrollbars in the admin frame
- Modal not matching documentation
- [Icon]: Update all icons with missing keywords HOT 1
- [Icon]: Update all icons without a description
- [Icon]: All Figma icon components have no description
- [Text Field] on Safari the `x` button doesn't clear the text field
- [Icon] New Enabled icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polaris.