GithubHelp home page GithubHelp logo

Comments (11)

jedsmith13 avatar jedsmith13 commented on September 28, 2024 1

@third774 Thanks for being willing to look into this.

I was able to create this on a blank Angular CLI project with just this module added #repo to clone.

If it helps here is my ng version info.

Angular CLI: 6.2.0
Node: 10.7.0
OS: linux x64
Angular: 6.1.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.8.0
@angular-devkit/build-angular     0.8.0
@angular-devkit/build-optimizer   0.8.0
@angular-devkit/build-webpack     0.8.0
@angular-devkit/core              0.8.0
@angular-devkit/schematics        0.8.0
@angular/cli                      6.2.0
@ngtools/webpack                  6.2.0
@schematics/angular               0.8.0
@schematics/update                0.8.0
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.17.2

from ng-bootstrap-form-validation.

joshuataylor avatar joshuataylor commented on September 28, 2024

Does this build for you? yarn start works, but yarn build results in:

ERROR in Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'NgBootstrapFormValidationModule' was called.

node 10.9.0

edit:
It looks like it creates a node_modules folder inside the ng-bootstrap-form-validation folder?

$ ls node_modules/ng-bootstrap-form-validation/node_modules/
@angular  rxjs  symbol-observable

edit: rm -rf node_modules/ng-bootstrap-form-validation/node_modules/ then a yarn build works. Need to make sure node_modules is not added.

from ng-bootstrap-form-validation.

joelmuskwe avatar joelmuskwe commented on September 28, 2024

Please try yarn add ng-bootstrap-form-validation@next or npm i ng-bootstrap-form-validation@next
That problem was in the previous version when you were working with angular 6 if it doesn't work trying clearing either your npm or yarn cache and reinstall the library.

from ng-bootstrap-form-validation.

joshuataylor avatar joshuataylor commented on September 28, 2024

That's what I have done already, I've deleted yarn.lock, node_modules, and ~/.yarn.

When doing another yarn add ng-bootstrap-form-validation@next (after deleting the existing "ng-bootstrap-form-validation": "^2.1.0-dev.20180903041904043Z.89a37902a6d131f1a0969eaf3c402cd9011ddcfc", from package.json, it seems to work, and deleting node_modules and running yarn again works now... very strange.

Cheers!

from ng-bootstrap-form-validation.

jedsmith13 avatar jedsmith13 commented on September 28, 2024

I am getting the same error:

ERROR in Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'NgBootstrapFormValidationModule' was called.

I have the same version as @joshuataylor:

"ng-bootstrap-form-validation": "^2.1.0-dev.20180903041904043Z.89a37902a6d131f1a0969eaf3c402cd9011ddcfc",

I have cleared my npm cache, removed ng-bootstrap-form-validation, and reinstalled using:

npm i ng-bootstrap-form-validation@next

I don't have the node_modules folder @joshuataylor had, but it still isn't working.

from ng-bootstrap-form-validation.

third774 avatar third774 commented on September 28, 2024

Thanks for the reports @jedsmith13 and @joshuataylor!

I won't have time to look into this until this weekend. If anyone is able to reproduce with a repo I can clone, that would be super helpful!

from ng-bootstrap-form-validation.

joelmuskwe avatar joelmuskwe commented on September 28, 2024

Will try to take a look at it too

from ng-bootstrap-form-validation.

joelmuskwe avatar joelmuskwe commented on September 28, 2024

Fixed the ERROR in Error during template compile of 'AppModule' bug refer to pull request #45

from ng-bootstrap-form-validation.

third774 avatar third774 commented on September 28, 2024

@jedsmith13 - can you try installing ng-bootstrap-form-validation@next again and see if it works now? Should be all good after that PR from @joelmuskwe

from ng-bootstrap-form-validation.

joshuataylor avatar joshuataylor commented on September 28, 2024

Can confirm that builds now work correctly 🎉

Thanks so much everyone!

from ng-bootstrap-form-validation.

jedsmith13 avatar jedsmith13 commented on September 28, 2024

@third774 and @joelmuskwe It works, Thanks.

from ng-bootstrap-form-validation.

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.