Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set locale Error #3

Open
bug249286 opened this issue Jul 28, 2022 · 0 comments
Open

Set locale Error #3

bug249286 opened this issue Jul 28, 2022 · 0 comments

Comments

@bug249286
Copy link

import ViewUIPlus from 'view-ui-plus';
import locale from 'view-ui-plus/dist/locale/en-US';
import 'view-ui-plus/dist/styles/viewuiplus.css';
export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(ViewUIPlus, { locale });
});

Error
(node:54583) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created)

How to set locale

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant