Giter VIP home page Giter VIP logo

Comments (7)

mikethm avatar mikethm commented on May 4, 2024

The line it is complaining about (./~/ng2-formio/src/formio.component.js 9:13-32) is
var Formio = require('formiojs'); ...

@travist any ideas as to what might be causing this / what i can do to help debug?

from angular.

travist avatar travist commented on May 4, 2024

I am actually looking at this right now. I may try to turn it into a import command and see if that has an effect.

from angular.

mikethm avatar mikethm commented on May 4, 2024

ng2-formio is in node-modules/formiojs/package.json
It doesn't seem like it really should be there... is it possible that it's causing a circular dependency?

Also, is it possible that formiojs is importing itself (or other some other library that depends on itself, creating a circular dependency? (quick grep seems like it's formiojs/form that it imports...)

from angular.

travist avatar travist commented on May 4, 2024

Ah... I will get new release out today that cleans all this up. Thank you!

from angular.

travist avatar travist commented on May 4, 2024

So, I just took a look and do not see ng2-formio within the package.json of formiojs. I see that it is within the _requiredBy and _location but that is done during the installation of the module so I don't think that is it. Pretty frustrating since the errors that are thrown do not really indicate the real problem, and since it is fine with regular builds, I am having a hard time figuring out the cause here. Open to other suggestions.

from angular.

mikethm avatar mikethm commented on May 4, 2024

ah - my bad.
i read some people suggesting trying to use source maps on the call stack helping to help to track down the circular dependency...

maybe something like https://github.com/evanw/node-source-map-support ?

from angular.

mikethm avatar mikethm commented on May 4, 2024

a good writeup as to how easy it is to create an infinite loop in angular... angular/angular#7930

from angular.

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.