I'm creating a project in react which works ok, but I need to add SEO now, and I think the best option is react-snapshot. I saw some examples and it's really easy to setup.
Anyway, I think there is an error or I didn't understand easy setup. When I run build, and crawling starts, it throws many error, always same error.
Starting crawling http://localhost:62475/
(node:71431) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token < in JSON at position 0
SyntaxError: Unexpected token < in JSON at position 0
I'm using the command npm run build:js so it runs build and react-snapshot.
Hi there,
I'm creating a project in react which works ok, but I need to add SEO now, and I think the best option is react-snapshot. I saw some examples and it's really easy to setup.
Anyway, I think there is an error or I didn't understand easy setup. When I run
build
, and crawling starts, it throws many error, always same error.I'm using the command
npm run build:js
so it runs build and react-snapshot.My package.json is:
What am I doing wrong? Thanks in advance!