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

svg.filter.js - I need to use it without NPM or YARN install #66

Open
Mikeardy opened this issue Jul 2, 2023 · 0 comments
Open

svg.filter.js - I need to use it without NPM or YARN install #66

Mikeardy opened this issue Jul 2, 2023 · 0 comments

Comments

@Mikeardy
Copy link

Mikeardy commented Jul 2, 2023

Hi,

for a specific application I cannot use NPM or YART to install the svg.filter.js plugin.

I tried to import into my script file like the following:

<script src="../factorynex/distr/svg/svg.min.js"></script> <script src="../factorynex/distr/svg/svg.filter.js"></script>
but something went wrong because the browser console replied to me the following:

Uncaught SyntaxError: Cannot use import statement outside a module (at svg.filter.js:1:1)

the issue rised up here into the svg.filter.js:

import { Array as SVGArray, Container, Defs, Element, extend, find, namespaces as ns, nodeOrNew, utils, wrapWithAttrCheck } from '@svgdotjs/svg.js'

could someone help me on solve this issue?

Thanks

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