![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@nextindex/vue-gdpr
Advanced tools
npm install @nextindex/vue-gdpr --save
vue-gdpr
is internally using dynamic import()
statements to load the corrisponding langauge.json with the law text. As how webpack works, it will create vendor chunks because of the import()
. Which sounds generally good, because it reduces the bundle size. However, webpack can't properly resolve these imports later in the project where you are using this lib.
It will try to fetch the chunks based on the publicPath
which in most project will be simply /
. But the chunks are not automatically copied into it. So the loading of the chunks fails.
Currently the only workaround I've found is to publish the source files and let the user import the vue components from the source files. Which also means that bundling / transpiling needs to be done in user-land.
GitHub Issue: https://github.com/webpack/webpack/issues/11127
// THIS IS CURRENTLY NOT WORKING. SEE https://github.com/webpack/webpack/issues/11127
import { GDPRSidebar, GDPRContent } from '@nextindex/vue-gdpr'
Workaround
import GDPRSidebar from '@nextindex/vue-gdpr/src/components/GDPRSidebar.vue'
import GDPRContent from '@nextindex/vue-gdpr/src/components/GDPRContent.vue'
<GDPRSidebar />
<GDPRContent />
Prop | Type | Default Value | Description |
---|---|---|---|
lang | String | de | GDRP Language. Currently supported: de |
citations | Boolean | true | Show / Hide citations |
recitals | Boolean | true | Show / Hide recitals |
Prop | Type | Default Value | Description |
---|---|---|---|
lang | String | de | GDRP Language. Currently supported: de |
collapsible | Boolean | false | Enable/Disable Collapible sidebar items |
<GDPRSidebar>
<template v-slot:chapter="{ chapter }">
<h1>{{ chapter.title }}</h1>
</template>
</GDPRSidebar>
npm run serve
npm run build
npm run test:unit
npm run lint
FAQs
Render Components for GDPR Law
The npm package @nextindex/vue-gdpr receives a total of 2 weekly downloads. As such, @nextindex/vue-gdpr popularity was classified as not popular.
We found that @nextindex/vue-gdpr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.