Skip to content
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

Fresh install bug #25

Closed
lukaszzdanikowski opened this issue Oct 23, 2017 · 7 comments
Closed

Fresh install bug #25

lukaszzdanikowski opened this issue Oct 23, 2017 · 7 comments
Projects

Comments

@lukaszzdanikowski
Copy link
Contributor

yarn run v1.2.1
node v8.7.0
After repository clone and yarn install && yarn start i get:
ERROR in ./src/resources/images/mario-large.png?sizes=100w+200w+400w+800w&placeholder&lightweight
esourcesimagesmario-large.png' in 'C:\sandbox\workspace\react-pwa\src\resources\images'
@ ./src/resources/images/mario-large.png?sizes=100w+200w+400w+800w&placeholder&lightweight 12:17-199 24:17-199
@ ./src/app/components/progressive-image/progressive-image.js
@ ./src/pages/progressive-image-rendering.js
@ ./src/routes.js
@ ./src/core/client/dev.client.js
@ multi babel-polyfill react-hot-loader/patch ./src/core/client/dev.client.js webpack-hot-middleware/client?name=common-client&path=/__hmr_update&timeout=2000&overlay=true

ERROR in ./src/resources/images/mario-large.png?sizes=100w+200w+400w+800w&placeholder
esourcesimagesmario-large.png' in 'C:\sandbox\workspace\react-pwa\src\resources\images'
@ ./src/resources/images/mario-large.png?sizes=100w+200w+400w+800w&placeholder 12:17-200 24:17-200
@ ./src/app/components/home/home.js
@ ./src/pages/home.js
@ ./src/routes.js
@ ./src/core/client/dev.client.js
@ multi babel-polyfill react-hot-loader/patch ./src/core/client/dev.client.js webpack-hot-middleware/client?name=common-client&path=/__hmr_update&timeout=2000&overlay=true

@tirthbodawala
Copy link
Member

@lukaszzdanikowski well it worked for me in Ubuntu, not sure why is it giving an error in Windows. Can you please share OS details as well?

@lukaszzdanikowski
Copy link
Contributor Author

@tirthbodawala Win10 Pro x64 v1703

@tirthbodawala
Copy link
Member

Thanks @lukaszzdanikowski I have mac and Ubuntu. will get access to Windows tomorrow morning IST. i.e. approx 16 hours from now. I will look into it asap. Thanks for reporting.

@lukaszzdanikowski
Copy link
Contributor Author

@tirthbodawala thanks, it looks like slashes in on of the plugins get interpreted, that is why the file urls is changed to: esourcesimagesmario-large.png

@tirthbodawala
Copy link
Member

Right. I am sure its something related to windows path problem. Getting a VM to solve the issue asap. If you find the bug please share the PR.
Thanks

@ghost ghost mentioned this issue Oct 23, 2017
@lukaszzdanikowski
Copy link
Contributor Author

I think that the issue is with pwa-srcset-loader. The npm version is not aligned with github repository (could you add version tags?). In the version that is published through npm the createPlaceholderRequest generates unescaped require if you add JSON.stringify there it should be ok. @tirthbodawala

tirthbodawala added a commit that referenced this issue Oct 25, 2017
@tirthbodawala
Copy link
Member

@lukaszzdanikowski Thank you so much for the wonderful PR in pwa-srcset-loader. I have merged it and upgraded the repo to use latest pwa-srcset-loader. Please let me know if you are still facing the issue.

Also I have added Docker support thus making it workable everywhere.
Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants