vue-flatpickr-component icon indicating copy to clipboard operation
vue-flatpickr-component copied to clipboard

SSR: failed to import component after upgrade to 11.0.4

Open phlegx opened this issue 5 months ago • 2 comments

I'm submitting a ... (check one with "x")

[x] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

Tell about your platform

  • flatPickr version : 4.6.13
  • Vue.js version : 3.4
  • Browser name and version : Chrome|Firefox|Edge x.x.x
  • This package version : 11.0.4

Current behavior

After upgrade this package from 11.0.3 to 11.0.4 this error is thrown:

[vite] Error when evaluating SSR module /src/views/.../Index.vue: failed to import "vue-flatpickr-component"
|- ./node_modules/vue-flatpickr-component/dist/esm/index.js:1
import Component from './component';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (node:internal/modules/cjs/loader:1378:20)

Expected behavior

This package should work also for SSR environments (package vite-ssr).

Minimal reproduction of the problem with instructions

phlegx avatar Sep 04 '24 06:09 phlegx