TypeError: UniverPlugin is not a constructor #2526
-
Hi Everyone, I am encountering an issue while using Webpack with the UniverPlugin. When I attempt to utilize the UniverPlugin, I receive the following error: TypeError: UniverPlugin is not a constructor I am currently using the import statement to require the plugin, other plugins have Any assistance in resolving this issue would be greatly appreciated. Webpack version: ^5.73.0 Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can find the usage of As a temporary workaround, you can redefine the types in your project with: declare module "@univerjs/webpack-plugin" {
const UniverPlugin: any;
} We will export the types in future versions. |
Beta Was this translation helpful? Give feedback.
-
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'
|
Beta Was this translation helpful? Give feedback.
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'