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

Is it supported by Nuxt js? #199

Open
TangoCh4rlie opened this issue Sep 11, 2024 · 0 comments
Open

Is it supported by Nuxt js? #199

TangoCh4rlie opened this issue Sep 11, 2024 · 0 comments

Comments

@TangoCh4rlie
Copy link

The problem

Does someone know if wired-elements can be used with Nuxt.js?

I just tried to impelment this in my app.vue (root of my project).

It looks like this :

<script>
import { WiredButton } from 'wired-elements/lib/wired-button.js';
import { WiredInput } from 'wired-elements/lib/wired-input.js';
</script>

<template>
  <div>
    <wired-input placeholder="Enter name"></wired-input>
    <wired-button>Click Me</wired-button>
  </div>
</template>

Error

[nuxt] [request error] [unhandled] [500] SVGSVGElement is not defined

This is the stacktrace

at ./node_modules/.pnpm/[email protected]/node_modules/wired-elements/lib/wired-base.js:75:31
at async ViteNodeRunner.runModule (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:399:5)
at async ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:381:5)
at async ViteNodeRunner.cachedRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:206:14)
at async ViteNodeRunner.dependencyRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:259:12)
at async ./node_modules/.pnpm/[email protected]/node_modules/wired-elements/lib/wired-button.js:1:31
at async ViteNodeRunner.runModule (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:399:5)
at async ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:381:5)
at async ViteNodeRunner.cachedRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:206:14)
at async ViteNodeRunner.dependencyRequest (./node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vite-node/dist/client.mjs:259:12)

Issue?

Does someone have an idea to solve 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
Development

No branches or pull requests

1 participant