Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only 2 arguments allowed, but 3 were passed. #2

Closed
tortuvshin opened this issue Jun 8, 2019 · 9 comments
Closed

Only 2 arguments allowed, but 3 were passed. #2

tortuvshin opened this issue Jun 8, 2019 · 9 comments

Comments

@tortuvshin
Copy link

tortuvshin commented Jun 8, 2019

Only 2 arguments allowed, but 3 were passed.

246 │   @include form-validation-state($state, map-get($data, color), map-get($data, icon));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  node_modules\bootstrap\scss\_forms.scss 246:3  form-validation-state()
  node_modules\bootstrap\scss\_forms.scss 246:3  @import
  stdin 21:9                                     root stylesheet
@chelaruc
Copy link
Contributor

@tortuvshin thank you for using our product. You need to update the bootstrap version. Best, Ciprian

@ashkaushik
Copy link

@chelaruc I have updated bootstrap and ng-bootstrap, still, I am facing the same issue. can you please help?
I am using angular 8 with bootstrap 4.3.1 and ng-bootstrap v 5..

@chelaruc
Copy link
Contributor

chelaruc commented Jul 3, 2019

@murilowlima
Copy link

I had the same issue. Can you please help?

ERROR in ./src/assets/scss/argon.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--13-3!./src/assets/scss/argon.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined
 ^
      Only 2 arguments allowed, but 3 were passed.
    ╷
246 │   @include form-validation-state($state, map-get($data, color), map-get($data, icon));
    │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  node_modules\bootstrap\scss\_forms.scss 246:3  form-validation-state()
  node_modules\bootstrap\scss\_forms.scss 246:3  @import
  stdin 35:9                                     root stylesheet

Dependencies:

    "dependencies": {
        "@angular/animations": "~8.1.2",
        "@angular/common": "~8.1.2",
        "@angular/compiler": "^8.1.3",
        "@angular/core": "^8.1.3",
        "@angular/forms": "^8.1.3",
        "@angular/platform-browser": "^8.1.3",
        "@angular/platform-browser-dynamic": "^8.1.3",
        "@angular/router": "^8.1.3",
        "@ng-bootstrap/ng-bootstrap": "^5.1.0",
        "bootstrap": "^4.3.1",
        "rxjs": "~6.5.2",
        "tslib": "^1.9.0",
        "zone.js": "~0.9.1"
    },

@ashkaushik
Copy link

no luck, brother

@Gerardlc
Copy link

Only 2 arguments allowed, but 3 were passed.

246 │   @include form-validation-state($state, map-get($data, color), map-get($data, icon));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  node_modules\bootstrap\scss\_forms.scss 246:3  form-validation-state()
  node_modules\bootstrap\scss\_forms.scss 246:3  @import
  stdin 21:9                                     root stylesheet

you only need to downgrade to version 4.2.1 so type:

npm install [email protected]

and will be fixed

@Agusnez
Copy link

Agusnez commented Oct 24, 2019

Downgrading to 4.2.1 means XSS Vulnerabilities in you app. Just keep in mind that. Like #1 says.

@ixzy24
Copy link

ixzy24 commented Oct 27, 2019

Had the same issues at with bootstrap 4.3.1, fixed it by adding a third parameter to

@mixin form-validation-state($state, $color) {

@mixin form-validation-state($state, $color) {

to

@mixin form-validation-state($state, $color, $icon) {

@bsalazar25
Copy link

thanks, its works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants