menu

React Static

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

Channels
Team
Posts
Members
Info

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

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

`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

What is the best way to use a .env file with react-static.

Is there some inbuilt feature or I have to use something like dotenv.

thumbsup
0
message-simple
2

How I add custom env. to my libs

I want to be use process.env.graphqlPath in my apollo.js. How can I do ? FYI. in Create-react-app. they have custom env. with REACT_APP_XYZ.

thumbsup
0
message-simple
7

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
18

An internal server error

Hey, I am pretty new to react-static and chrome just threw me this when started to run the development server: An internal error occurred! …

thumbsup
0
message-simple
4

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