directus-labs / agency-os

The open source operating system for digital agencies. Built with Directus and Nuxt.
https://agencyos.dev
MIT License
604 stars 117 forks source link

Pages navigation don't load page content #95

Closed leomiranda closed 6 months ago

leomiranda commented 6 months ago

Hi guys,

I just installed a new project in my local with pnpm and directus is runing on http://localhost:8055 using docker.

The project run, I click in the navigation item, the URL change, but nothing happens to the page.

image

[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core . 
  at <RouterView name=undefined route=undefined > 
  at <NuxtPage> 
  at <Default ref=Ref< Proxy(Object) {…} > > 
  at <LayoutLoader key="default" layoutProps= {ref: RefImpl} name="default" > 
  at <NuxtLayoutProvider layoutProps= {ref: RefImpl} key="default" name="default"  ... > 
  at <NuxtLayout> 
  at <App key=3 > 
  at <NuxtRoot>
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'type')
    at unmountComponent (chunk-VDMLRAME.js?v=71d93eb8:8058:18)
    at unmount (chunk-VDMLRAME.js?v=71d93eb8:7969:7)
    at patchSuspense (chunk-VDMLRAME.js?v=71d93eb8:2790:9)
    at Object.process (chunk-VDMLRAME.js?v=71d93eb8:2673:7)
    at patch (chunk-VDMLRAME.js?v=71d93eb8:6809:16)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-VDMLRAME.js?v=71d93eb8:7542:9)
    at ReactiveEffect.run (chunk-VDMLRAME.js?v=71d93eb8:430:19)
    at instance.update (chunk-VDMLRAME.js?v=71d93eb8:7586:17)
    at callWithErrorHandling (chunk-VDMLRAME.js?v=71d93eb8:1660:33)
    at flushJobs (chunk-VDMLRAME.js?v=71d93eb8:1866:9)

Thanks,

leomiranda commented 6 months ago

Fixed!

I edited my directus docker-compose.yml adding in the enviroment:

CORS_ENABLED: 'true'