menu

React Static

A fast, lightweight, and powerful framework for building static-progressive React applications and websites.

Channels
Team
Posts
Members
Info

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

Antd Component Library and V7

Is anyone currently using Antd/Less and React Static v7? v6 had an example, but I'm having trouble replicating the setup in v7. https://github.com/react-static/react-static/tree/v6/archives/old-examples/less-antdesign …

thumbsup
1
message-simple
4

Hey! I'm having trouble with 'yarn build'

I have react-static-plugin-typescript installed and it keeps saying "Starting type checking service..." …

thumbsup
2
message-simple
9

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

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

Hello :) Are there any known bugs around unicode in react-static?

I have a react-static website ( https://turtlequeue.com/ ) that renders HTML fine with SSR but then it seems after the JS rendering is done the unicode characters are garbled (look at the footer for instance). This only happens with a production build, development seems fine.

thumbsup
0
message-simple
19

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

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

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

Watercooler Chat

A place for chit-chat :)

thumbsup
7
message-simple
281