Internal server error fetching loader data

I built a plasmic project and am now trying to run it from my local host. Am getting the following error when starting up the app:

error - Error: Error fetching loader data: Internal Server Error
at Api.fetchLoaderData (/path/to/node_modules/@plasmicapp/loader-fetcher/dist/loader-fetcher.cjs.development.js:31:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async PlasmicModulesFetcher.doFetch (/path/to/node_modules/@plasmicapp/loader-fetcher/dist/loader-fetcher.cjs.development.js:119:18)
at async PlasmicModulesFetcher.getCachedOrFetch (/path/to/node_modules/@plasmicapp/loader-fetcher/dist/loader-fetcher.cjs.development.js:114:18)
at async PlasmicModulesFetcher.fetchAllData (/path/to/node_modules/@plasmicapp/loader-fetcher/dist/loader-fetcher.cjs.development.js:92:20) {
type: ‘Error’,
page: ‘/[[…catchall]]’
}

Any assistance on this would be appreciated!

Are you still having this issue?

Yes, I am.

Sorry about that. Can you please share more details?

Which project ID are you seeing this for?

Are you using Next.js and loader-nextjs?

Project ID: rnFACethvukj611fagYDJP

Here are the steps I took:

  1. Push plasmic project to github repo
  2. Git clone repo to my local machine
  3. Ran npm install & npm run dev - no errors
  4. Set URL in plasmic project to http://localhost:3000/plasmic-host
  5. Opened browser to http://localhost:3000 - this produced errors both in console and in browser window as shown above.

Thank you, we’re taking a look

@scott_deloach We’ve pushed a fix here; could you try again?

OK - I re-did the steps described earlier and now get the following error message:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 620 ms (149 modules)
Error: You cannot define a route with the same specificity as a optional catch-all route (“/” and “/[[…catchall]]”).
at UrlNode._smoosh (/path/to/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js:36:23)
at UrlNode.smoosh (/path/to/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js:11:21)
at Object.getSortedRoutes (/path/to/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js:161:17)
at Watchpack. (/path/to/node_modules/next/dist/server/dev/next-dev-server.js:446:55)

Just a note here: I removed the [[…catchall]].jsx file and it now works. Apparently it conflicts with index.jsx? Let me know if there is a better way to handle this.

UPDATE: Removing all my local pages after pushing to github and using Plasmic’s catchall now works as expected. Going forward, I just simply turn off pushing to github repo so that I can continue to edit pages via Plasmic’s UI and let local code pull latest changes.

1 Like

Hi all, im also now experiencing this issue, was there a package update that needs to be applied?