Skip to content

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

@Mikeardy

Description

@Mikeardy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions