Skip to content

[v9.0.0-rc.1] "The @nextcloud/vue library was used without setting / replacing the appName" #6941

Open
@hschletz

Description

@hschletz

Since 9.0.0-alpha.8 (and still with v9.0.0-rc.1) my app shows an error in the browser console:

chunk-MD7AZ4D5.js?v=b43cf7f5:91 [ERROR] @nextcloud/vue: The `@nextcloud/vue` library was used without setting / replacing the `appName`. {uid: 'johndoe', app: '@nextcloud/vue', level: 0}
log @ chunk-MD7AZ4D5.js?v=b43cf7f5:91
error @ chunk-MD7AZ4D5.js?v=b43cf7f5:109
(anonymous) @ appName.ts:15

I traced the cause down to src/utils/appName.ts:

try {
	// @ts-expect-error This is a  name replaces by the compiler
	realAppName = appName
} catch {
	logger.error('The `@nextcloud/vue` library was used without setting / replacing the `appName`.')
}

I don't understand what causes the exception. appName is defined and set to my application's name (tested within the entry script).

Possibly relevant because a "compiler" is involved: My app is built with vite and @nextcloud/vite-config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. to triagebugSomething isn't workingneed infoNot enough information provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions