menu
Channels
Team
Posts
Members
Info
down-caret

Watercooler Chat

A place for chit-chat :)

thumbsup
7
message-simple
281

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…

thumbsup
0
message-simple
4

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…

thumbsup
2
message-simple
13

How can I get the CSS Modules and LESS plugins to work together?

Hi! I've just installed both the plugins, I'd like to be able to import a LESS file as CSS modules: import * as styles from './MyLessFile.less <div className={styles.myStyle}>Test</div> …

thumbsup
0
message-simple
0

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:

thumbsup
0
message-simple
3

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:…

thumbsup
0
message-simple
0

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…

thumbsup
0
message-simple
0

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…

thumbsup
0
message-simple
7

`react-static-plugin-less` instructions?

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?

thumbsup
0
message-simple
1

How to deal with image elements in html from json

I'm using Drupal to create a json export and then a static build. Im currently just rendering the body content by: <div dangerouslySetInnerHTML={{__html: article.body}} /> …

thumbsup
1
message-simple
0

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…

thumbsup
5
message-simple
5