Skip to content

TypeError: UniverPlugin is not a constructor #2526

Discussion options

You must be logged in to vote

Found the solution, the error was due to the style of importing the 'univer:locales' which was causing the error.

Referred to the documentation and used the below code instead of 'univer:locales'

import { LocaleType, Tools } from '@univerjs/core';
import DesignEnUS from '@univerjs/design/locale/en-US';
import UIEnUS from '@univerjs/ui/locale/en-US';
import DocsUIEnUS from '@univerjs/docs-ui/locale/en-US';
import SheetsEnUS from '@univerjs/sheets/locale/en-US';
import SheetsUIEnUS from '@univerjs/sheets-ui/locale/en-US';
 
const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
      SheetsEnUS,
      DocsUIEnUS,
…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@aniruddha-k
Comment options

@hexf00
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by aniruddha-k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants