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

SSR: failed to import component after upgrade to 11.0.4 #295

Open
phlegx opened this issue Sep 4, 2024 · 2 comments
Open

SSR: failed to import component after upgrade to 11.0.4 #295

phlegx opened this issue Sep 4, 2024 · 2 comments

Comments

@phlegx
Copy link

phlegx commented Sep 4, 2024

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

@ankurk91
Copy link
Owner

ankurk91 commented Sep 4, 2024

Please provide more information

@ankurk91
Copy link
Owner

ankurk91 commented Sep 9, 2024

Possible causing PR
#286

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

2 participants