Skip to content

ERROR Pre-transform error: [unimport] failed to find "useDataLayerPush" imported from "#imports" #3

@cfroe

Description

@cfroe

Hi,

I try to you use your package in a quite complex nuxt monorepo and when I add the matomo package and run the application I get the following error.

Any idea about that?

Thanks

Christoph

ERROR Pre-transform error: [unimport] failed to find "useDataLayerPush" imported from "#imports" 16:33:48
Plugin: nuxt:imports-transform
File: C:/localhost/live/nuxt4_monorepo/node_modules/@openmost/nuxt-matomo/dist/runtime/plugins/02.datalayer-page-view.js?v=dad43ae0

ERROR Internal server error: [unimport] failed to find "useDataLayerPush" imported from "#imports" 16:33:48
Plugin: nuxt:imports-transform
File: C:/localhost/live/nuxt4_monorepo/node_modules/@openmost/nuxt-matomo/dist/runtime/plugins/02.datalayer-page-view.js?v=dad43ae0
at file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:120:17
at Array.forEach ()
at file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:117:44
at Array.forEach ()
at parseVirtualImportsRegex (file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:115:122)
at detectImportsRegex (file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:96:28)
at async injectImports (file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:1491:61)
at async Object.injectImportsWithContext [as injectImports] (file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/node_modules/unimport/dist/shared/unimport.fAsRJybJ.mjs:1351:20)
at async TransformPluginContext.transform (file:///C:/localhost/live/nuxt4_monorepo/node_modules/nuxt/dist/index.mjs:3686:30)
at async file:///C:/localhost/live/nuxt4_monorepo/node_modules/vite-plugin-inspect/dist/shared/vite-plugin-inspect.BzUKaD4x.mjs:403:17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions