Troubleshooting

Known DocLayer issues and quick fixes

Introduction

Here you can find a list of well-known issues and problems that you may encounter. We've gathered these together with quick fixes that you can use or implement while working with DocLayer. For the full picture of how errors, warnings, and logs work across the application's lifecycle, read here.

HMR and content parsing issues

During development, we've noticed that the presence of the Nuxt's Virtual File System can sometimes cause content rendering issues when hot-reloading. While this doesn't happen frequently, it may occasionally occur. To prevent this issue, you can easily disable HMR (hot module replacement) on the client side by setting the following environment variable:

DL_HMR=false

Unable to bind data inside the component's props

Currently, there's no way to use dynamic data binding (using $doc handler) within the properties of content components - MDC doesn't support this out of the box. However, we provide an option to inject dynamic data into any content block component that is built with DlWrapper. Everything you need to know about this you can find here.

Additionally, it's worth mentioning that DlRenderer is also capable to do this for any of shared content components.

contentInsert.forEach is not a function

While writing your content, the dl-search module might report issues with parsing the content AST. Almost every time, this is caused by incorrectly formatted code blocks. To prevent this, you can escape problematic sections using [[ esc ]]...[[ /esc ]] tags. Everything about resolving this issue you can learn here.

Chrome DevTools request

With DevTools open, Chrome requests a workspace file. The dev server then prints:

[request error] [fatal] [GET] http://localhost:3000/.well-known/appspecific/com.chrome.devtools.json

DocLayer does not create this file, and it is not one of your content routes. Chrome sends the request so it can map the open site to your local project. The route is missing, so Nitro reports a 404. Pages, content, and the build are unaffected.

To answer the probe instead of throwing a 404, keep Nuxt's dev handler on. experimental.chromeDevtoolsProjectSettings defaults to true. It registers a development-only route that returns a small JSON payload: a workspace id and the project root. That response is generated at runtime. It is not a file you add under public/. If you turned the flag off, set it back to true and restart the dev server:

export default defineNuxtConfig({  experimental: {    chromeDevtoolsProjectSettings: true,  },});

Setting the flag to false removes that handler, so Chrome keeps receiving a 404 and the same log stays.

The path is already included in utilWarnPatternCheck. That filter mutes matching Vue and DocLayer logs. It does not cover this [request error] line. Nitro prints it from its own dev error handler before the filter runs, so the line can still show up. For the rest of the logging pipeline, see error handling.