Images in generated index.html get wrong URL
I have a very simple react-static site that works as expected in dev mode. When I build for staging or production, the images I import in my components (import SomeImage from '../images/my-image.png') don't get shown on the initial page load. Only after navigating to another…
Anyone seeing Netlify builds ending early, but not failing?
I have quite a large site, which usually updates a thousand or so pages every hour, I've started seeing that occasionally, the Exporting HTML step of my build hits 90% and then Netlify reports the build as Done and starts deploying This doesn't thrown any errors, but…
How to deal with links like: window.location.origin + '/callback' ?
I'm not able to get the build process to finish properly (it fails during exporting HTML for URL) since window.location.origin is not available (Cannot read property 'origin' of undefined). This is pretty important step since it's used by the Auth0Provider. An example:
Problem (bug?) with server-side rendering
I'm on the latest react-static v5 and I am often running into issues where the initial page load is wrong, but switching to another page and back fixes the issues. For example, if you open this page on a mac, the "download for linux" links to the mac download instead:…
help with migrating to react-static v7
Hi , I am trying to migrate a project to react-static v7 I am currently at v5.9.7. I updated babel version to 7 and react/react-dom versions as well as stated in the release notes/Changelog , there are no errors in the build do I need to change anything in the code I have this…
Template output paths wrong?
Hi, does anyone know why my outputted templates are building into nested directories from my filesystem root rather than from my project root? Ie my templates are getting outputted to dist/templates/home/adam/code/thisproject/src/home.js rather than dist/templates/home.js. The…
I am including the react-static-plugin-less plugin in my static.config.js file like so: and also including a LESS file in my App.js file like so: It doesn't seem like anything's actually happening / working .... What else am I missing?
Regarding the "hanging start/build" issue
I have fixed this upstream and will be released . The issue was that on a WARNING it would also report as a build failure. However, it would not output anything on build failure, resulting in a "hang". Warnings are now allowed and errors are now correctly printed. This will be…