Git Product home page Git Product logo

Comments (7)

szepeviktor avatar szepeviktor commented on June 27, 2024

@travist Or: formio-complete.js:41594 WARNING: Tried to load angular more than once.

from ngformio.

travist avatar travist commented on June 27, 2024

We will take a look. Thanks.

from ngformio.

laradevitt avatar laradevitt commented on June 27, 2024

Hello,

I'm running into this, too. Unless I'm seeing things, looks to me like formio-complete.js (2.2.4) does contain Angular when the docs say it shouldn't.

from ngformio.

Liam-Ryan avatar Liam-Ryan commented on June 27, 2024

Still seeing this on latest build

from ngformio.

ghachemsaif avatar ghachemsaif commented on June 27, 2024

No solution yet for this issue please ??

from ngformio.

rmckeel avatar rmckeel commented on June 27, 2024

A few notes here, as I just had to push around this.

What's interesting here is that https://github.com/formio/ngFormio/blob/master/src/formio-complete.js does not include angular, while https://github.com/formio/ngFormio/blob/master/src/formio-full.js clearly does. Perhaps something in the build script is injecting Angular automatically because it is a dependency of libraries like angular-sanitize? Just a guess.

I have an NG1 (TypeScript) app, and I ended up putting the includes from /src/formio-complete.js manually into the file. (To replace require('./formio'), I did an import 'ng-formio/dist/formio'. That prevented & fixed the 'loading angular multiple times' issue. (NOTE: that may also require some npm i for each library you are trying to require.)

That's not super convenient, however may be a temporary workaround.

from ngformio.

daneformio avatar daneformio commented on June 27, 2024

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

from ngformio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.