jeremykenedy/laravel-spa

Permission page error

Closed this issue · 16 comments

Everything is working fine, except the PERMISSION page. when I visit this page, I confront with following error and the application is crashed.

init-query.js:7 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'hasOwnProperty')
at module.exports (init-query.js:7:46)
at Proxy.created (v-client-table.js:91:27)
at callWithErrorHandling (runtime-core.esm-bundler.js:157:36)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:166:21)
at callHook (runtime-core.esm-bundler.js:3590:5)
at applyOptions (runtime-core.esm-bundler.js:3492:9)
at finishComponentSetup (runtime-core.esm-bundler.js:7368:9)
at setupStatefulComponent (runtime-core.esm-bundler.js:7279:9)
at setupComponent (runtime-core.esm-bundler.js:7201:11)
at mountComponent (runtime-core.esm-bundler.js:5524:13)

Message that will be displayed on users' first issue

I am unable to replicate, make sure the permissions are seeded

It is probably returning no permission, check the https request in the console to see what it returns.

I am really sorry for reaching you after closing this issue. After solving the above issue, now I am facing another issue where I coulding fix this. I attached the console error message. Could you please help me in this regard.
Uploading Screen Shot 2023-02-11 at 18.17.02.png…

I don't know the error. The screenshot didn't upload.

Can you post the stack trace or the console error log. Thanks

Screen Shot 2023-02-11 at 18 17 02

Thank you very much, this is the screenshot.

The cafe token has to come from the site matching in your .env APP_URL

Alternatively you can set SANCTUM_STATEFUL_DOMAINS

Google 'laraval sanctum csfr token error'

I opened the file, should I bring any specific changes? this is my .env file.
Screen Shot 2023-02-12 at 14 54 02

Alternatively you can set SANCTUM_STATEFUL_DOMAINS

How I can setup, I am sorry, I am note advanced skilled in laravel and vue.

Thank you very much it is fixed.

I am really sorry for reaching you after closing this issue. After solving the above issue, now I am facing another issue where I coulding fix this. I attached the console error message. Could you please help me in this regard.
Uploading Screen Shot 2023-02-11 at 18.17.02.png…

how did you fix it please im facing the same problem

Run the seeders