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

Style.css not exported for Text Layer Implementation #101

Closed
adi-dora opened this issue Mar 26, 2024 · 2 comments · Fixed by #102
Closed

Style.css not exported for Text Layer Implementation #101

adi-dora opened this issue Mar 26, 2024 · 2 comments · Fixed by #102

Comments

@adi-dora
Copy link

I'm running the VuePDF module and when I try importing the style.css like the documentation, I get an error:

image

Here's my code:

<script lang="ts" setup>
import { useQuasar } from 'quasar';
import { VuePDF, usePDF } from '@tato30/vue-pdf';
import '@tato30/vue-pdf/style.css';
import { ref, onBeforeMount, watch, reactive } from 'vue';
import VCodeBlock from '@wdns/vue-code-block';
import VueCookies from 'vue-cookies';

Any advice would be helpful, thanks!

@TaTo30
Copy link
Owner

TaTo30 commented Mar 26, 2024

It could be an issue from vite, the package.json exports are defined like this:

"exports": {
    ".": {
      "require": "./dist/index.umd.js",
      "import": "./dist/index.mjs",
      "types": "./dist/types/index.d.ts"
    },
    "./*.css": "./dist/*.css",
    "./src/*": "./src/*"
  }

Try modifying this line "./*.css": "./dist/*.css" by "./style.css": "./dist/style.css"

@adi-dora
Copy link
Author

OK yes, that does fix it for me locally, thank you! But, when I actually deploy, the same error persists because the version of the module that gets installed still has the issue. Do you have any fix for this?

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