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

With statements cannot be used with the "esm" output format due to strict mode #31

Open
sunil-dzango opened this issue May 23, 2022 · 0 comments

Comments

@sunil-dzango
Copy link

  • Vue.js version: 3.2.31 with Typescript and Options API
  • consumed using: (browserify/webpack/rollup): Vite
  • FULL error message (including stack trace):
 [ERROR] With statements cannot be used with the "esm" output format due to strict mode

    node_modules/vue-pagination-3/compiled/Pagination.js:14:8:
      14 │         with(this) {
         ╵         ~~~~


 ERROR  12:14:41 PM [vite] error while updating dependencies:                                     12:14:41
Error: Build failed with 1 error:
node_modules/vue-pagination-3/compiled/Pagination.js:14:8: ERROR: With statements cannot be used with the "esm" output format due to strict mode
  • relevant code:
import { ServerTable } from "vue-tables-3";
app.use(
  ServerTable,
  [(options = {})],
  [(useVuex = false)],
  [(theme = "bootstrap3")],
  [(template = "default")]
);
  • steps for reproducing the issue:
    The error occurs when running the app.
    yarn dev
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