Comments (11)
@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.
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.
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.
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.
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.
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.
Will try to take a look at it too
from ng-bootstrap-form-validation.
Fixed the ERROR in Error during template compile of 'AppModule' bug refer to pull request #45
from ng-bootstrap-form-validation.
@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.
Can confirm that builds now work correctly 🎉
Thanks so much everyone!
from ng-bootstrap-form-validation.
@third774 and @joelmuskwe It works, Thanks.
from ng-bootstrap-form-validation.
Related Issues (20)
- How disable multiple error messages
- how to incorporate debouncy behavior preventing double submit
- Issue with [formControl] input HOT 1
- How to apply to checkbox with custom error message
- License text not package in node_modules
- Project is dead?
- Ability to hide error messages inside <bfv-messages></bfv-messages> HOT 2
- [Question] ngx-translate support? HOT 3
- [Question] Don't show validation errors until first submit
- Support Angular 8 HOT 1
- [Feature Request] Surface error value in CustomErrorMessages array
- [Question] Example for server-side errors
- [Question] Disable validation for some fields HOT 1
- [QUESTION] How can i get requiredLength attribute of Validators.minLength when i format error message
- [Question] How to work with cross field validation HOT 1
- [Question] setErrors doesn't show messages.
- Support Angular 9 HOT 9
- Async validator don't call validSubmit function HOT 2
- Error message not showing when compiling with Ivy angular 9 HOT 3
- Custom error on form control with custom validator (AbstractControl, ValidatorFn)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-bootstrap-form-validation.