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

unobtrusive #549

Open
sonsy-soft opened this issue Jun 8, 2020 · 0 comments
Open

unobtrusive #549

sonsy-soft opened this issue Jun 8, 2020 · 0 comments

Comments

@sonsy-soft
Copy link

I use grunt with my .net core
when uglify js files ,I take this error

Uncaught TypeError: Cannot set property 'unobtrusive' of undefined

uglify:
        {
            js:
            {
                src: [
                    'wwwroot/lib/jquery/jquery.min.js',
                    'wwwroot/lib/popper.js/umd/popper.js',
                    'wwwroot/lib/@laylazi/bootstrap-rtl/dist/js/bootstrap.bundle.min.js',

                    'wwwroot/lib/jquery-validate/dist/jquery.validate.js',
                    'wwwroot/lib/jquery-validate/dist/additional-methods.js',
                    'wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js',
                    'wwwroot/lib/jquery-validation-unobtrusive/jquery.unobtrusive-ajax.min.js',
                    'wwwroot/lib/jquery-ajax-unobtrusive-file-upload/jquery.unobtrusive-ajax.js',
                    
                    'wwwroot/lib/select2/js/select2.js',
                    'wwwroot/lib/persian-date/dist/persian-date.js',
                    'wwwroot/lib/persian-datepicker/dist/js/persian-datepicker.js',
                    'wwwroot/lib/sweetalert/sweetalert.min.js',
                    'wwwroot/lib/_custom/js/main.js'
                ],
                dest: 'wwwroot/dist/js/site.min.js'
            }
}

what should i do ?

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

1 participant