menu

React Static

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

Channels
Team
Posts
Members
Info
down-caret

Watercooler Chat

A place for chit-chat :)

thumbsup
7
message-simple
279

How to build react-static with css file

Now I have empty static.config.js. Where can I find example of static.config.js that can build with my img, css, js

thumbsup
0
message-simple
1

Regarding "yarn build" issue (string expected, got null)

This issue is being fixed. It's quite hard to track down. The culprit is the universal plugin bailing for some reason. It hangs together with dependency updates + the absolute paths. I am trying to make sure the paths are relative / hashed in the react-static-artifacts.ts and…

thumbsup
2
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
2
message-simple
0

`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

Run API call in static.config.js first, then run export default?

I am looking to get some data back from an API and use some of it in a variable inside the modifyVars option like below: Can anyone help me out with how I can accomplish this? Thanks!

thumbsup
0
message-simple
2

Image import

Hey ho, I'm using react-static for my blog. I have some images, some of them are somewhat larger. When using dev mode, all works great, but when building for prod, those images that are small enough will be turned into base64 which are also shown correctly, but those that are…

thumbsup
0
message-simple
8

What sets the id of the main div to be `root`?

Wondering what file / component / library actually sets the main div of the project to be root. It doesn't seem to be in the main codebase ... is it in a different package?

thumbsup
0
message-simple
1

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

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

thumbsup
1
message-simple
5

Apollo & Page suspended while rendering Error

Hey all, I'm new to react-static and giving it a try to replace a NextJS site. One issue that I'm running into is the following error when calling for data when using useRouteData() rather than calling apollo from within the page file. My static.config.js looks like …

thumbsup
0
message-simple
1

`npm run build` fails on CI

Hi everyone npm install followed by npm run build works locally on my machine (Windows 10), but fails in CI (Ubuntu Linux). It fails on npm run build with the following error message: I disabled the npm run build step on CI and instead only run the tests there, but obviously it…

thumbsup
0
message-simple
2