[
https://issues.apache.org/jira/browse/TINKERPOP-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16752138#comment-16752138
]
Jean-Baptiste Musso commented on TINKERPOP-2137:
------------------------------------------------
This could require different build steps and/or entrypoints so different
runtimes (Node.js or browsers) can use the library with different dependencies.
In theory, it shouldn't be that hard to bake in full support for both Node.js
and browsers. It could require a bit of work to have a both secure and
lightweight browser version though.
> Gremlin Javascript can't be used in Angular applications
> --------------------------------------------------------
>
> Key: TINKERPOP-2137
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2137
> Project: TinkerPop
> Issue Type: Bug
> Components: javascript
> Affects Versions: 3.4.0
> Environment: "@angular/cdk": "^7.2.1",
> Reporter: Dominik Franek
> Priority: Major
>
> If you try to install gremlin using
> {code:java}
> ng add gremlin{code}
> it gets you:
> _The package that you are trying to add does not support schematics. You can
> try using a different version of the package or contact the package author to
> add ng-add support._
> If you try using
> {code:java}
> npm i gremlin{code}
> it is installed, however the gremlin package can't be used in Angular
> Application. Is there any way to fix it to work for ng-add? If not, maybe the
> documentation needs an update of what Javascript environments are supported,
> because our project intended to use Gremlin (we tried using Java, that
> Gremlin is perfect... now when developing we found out that it is not
> possible in Angular :) ).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)