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

Kan ikke bruge ren vite project #7

Closed
whitewillow opened this issue Nov 2, 2022 · 7 comments
Closed

Kan ikke bruge ren vite project #7

whitewillow opened this issue Nov 2, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@whitewillow
Copy link
Owner

npm create vue@3

Og installer dkfds-vue3 og den fejler - givetvis multiple entries

@whitewillow whitewillow added the bug Something isn't working label Nov 2, 2022
@whitewillow
Copy link
Owner Author

Upgrade loader-utils to fix 2 Dependabot alerts in example/package-lock.json
Upgrade loader-utils to version 2.0.3 or later. For example:

"dependencies": {
"loader-utils": ">=2.0.3"
}
"devDependencies": {
"loader-utils": ">=2.0.3"
}

@whitewillow
Copy link
Owner Author

Har dette en indflydelse
vitejs/vite#6859

@whitewillow
Copy link
Owner Author

Fejl skyldes muligvis at enkelte komponenter importer dkfds - eg. fds-tooltip
Og selvom vi har lavet typings til dkfds, bliver de ikke taget med i byg.

@whitewillow
Copy link
Owner Author

npm run build-vite-test

cd ViteTest

npm run dev

Se evt;

vite.config.js linie 23
// external: ['vue', 'dkfds'], // <-- Fjerner man dkfds - opstår problemet allerede ved npm run build-vite-test

@whitewillow
Copy link
Owner Author

Fejlen:
[vite] Internal server error: Failed to resolve entry for package "dkfds". The package may have incorrect main/module/exports specified in its package.json.

@whitewillow
Copy link
Owner Author

whitewillow commented Nov 10, 2022

se main_plugin.ts for det der bliver bygget med.
Herunder er følgende dem der har import af dkfds


import DKFDS from 'dkfds';

import FdsTooltip from '@/components/fds-tooltip.vue';
import FdsOverflowMenu from '@/components/fds-overflow-menu.vue';
import FdsTrinindikator from '@/components/fds-trinindikator.vue';

I sidste ende tænker vi laver vores egne script til at dække ovenstående - men nu ville det være fint hvis det kunne virke sammen med bygget og et rent vite projekt

@whitewillow
Copy link
Owner Author

Efter snak med andre udviklere - så omskrives dropdown og tooltip til at være lokalt og ikke afhængig dkfds.

This was referenced Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant