Current Behavior
Generating pages doesn't work when trying to run postbuild script after some time.
The issue is very weird to me. Right after I've installed react-snap package it worked like a charm meaning it was generating static pages and putting it to my /build folder. After some times and a few more tries it started throwing the following error:
š„ pageerror at /: SyntaxError: Unexpected token < in JSON at position 0
š¬ console.log at /: Content is cached for offline use.
š¬ console.log at /: This web app is being served cache-first by a service worker. To learn more, visit https://goo.gl/SC7cgQ
ā crawled 18 out of 18 (/)
Node: v8.16.0
NPM: v6.4.1
Sadly I have no way to provide reproducible example as the repo is private. I tried to make code of my app as simple as possible but it didn't help really.
My index.js file:
my public.index.html file (template)
I've tried to clear cache, reinstall all dependencies, redeploy page. My only assumption is that there is some problem with cache but no clue what exactly. I'd appreciate every hint as I'm struggling with it from 12h š¤
UPDATE: I just open my laptop after 3h break, ran npm run postbuild and it worked again.
Bug Report
Current Behavior Generating pages doesn't work when trying to run postbuild script after some time.
The issue is very weird to me. Right after I've installed react-snap package it worked like a charm meaning it was generating static pages and putting it to my
/build
folder. After some times and a few more tries it started throwing the following error:Node: v8.16.0 NPM: v6.4.1
Sadly I have no way to provide reproducible example as the repo is private. I tried to make code of my app as simple as possible but it didn't help really.
My index.js file:![image](https://user-images.githubusercontent.com/7432041/76991444-e264b000-6949-11ea-9fca-fec0c1683706.png)
my![image](https://user-images.githubusercontent.com/7432041/76991488-f8727080-6949-11ea-9eac-1caaf5a7efa5.png)
public.index.html
file (template)I've tried to clear cache, reinstall all dependencies, redeploy page. My only assumption is that there is some problem with cache but no clue what exactly. I'd appreciate every hint as I'm struggling with it from 12h š¤
UPDATE: I just open my laptop after 3h break, ran
npm run postbuild
and it worked again.