Hi folks. I’m going through the official tutorial and got stucked at cpt support adding. i have tweaked frontity settings and added support for destionations cpt.
Then tutorial says
Frontity now knows about this CPT and will just work with it. Try it! Enter
localhost:3000/destinations
into your browser’s address bar and you should see a listing of our favourite travel destinations. Click on one and it displays using the<Post>
component.
So i have entered localhost:3000/destinations
into browser’s address bar and suddenly stumbled upon this text
Cannot read properties of undefined (reading 'link')
meanwhile in console there is an error
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Please, let me know what i am missing here .
my system info
## System:
- OS: Linux 5.4 Linux Mint 20.3 (Una)
- CPU: (8) x64 Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz
- Memory: 10.97 GB / 15.35 GB
- Shell: 5.0.17 - /bin/bash
## Binaries:
- Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
- npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
## Browsers:
- Chrome: 103.0.5060.134
- Firefox: 102.0.1
## npmPackages:
- @frontity/core: ^1.16.0 => 1.16.0
- @frontity/html2react: ^1.7.0 => 1.7.0
- @frontity/mars-theme: ./packages/mars-theme => 1.6.2
- @frontity/tiny-router: ^1.4.4 => 1.4.4
- @frontity/wp-source: ^1.11.7 => 1.11.7
- dayjs: ^1.11.4 => 1.11.4
- frontity: ^1.17.2 => 1.17.2
- my-first-theme: file:packages/my-first-theme => 1.0.0
## npmGlobalPackages:
- frontity: Not Found
- npx: Not Found
link to repo