Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ReactJS Interest-cohort

I’m just building a simple website and try to use github-pages.
But somehow I got:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.

I’m not sure about that warning, and my website doesn’t show anything.

Here if you want to see it:
https://yoga1234.github.io/frontendmentor-challenges/

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I took a look at your code on GitHub. I think the problem is with your React router. GitHub pages are deployed in a subdirectory by default. You need to adjust the basepath (homepage) in package.json accordingly. I change the path in my CI script, because i had the same problem a year ago:

 - name: Adjust basename 🔪
   uses: deef0000dragon1/json-edit-action/@v1
   env:
    KEY: homepage
    VALUE: /frontendmentor-challenges/
    FILE: package.json

Full example: https://github.com/foorschtbar/spa-crud-frontend/commit/a125d28d4c9f452c73aa6cae8a56cad3f3e6b262

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading