You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployed the infyom generator with L10 in a standard environment (following the instructions on laravel and Infyom site).
I've been dealing with "jQuery is not a function", "$ is not a function"
=> solved switching from import 'jquery';
to import jQuery from 'jquery'; window.$ = jQuery;
in resources/js/app.js and executing "npm run build" in order to bring the updates inside the unified/mi9nified js.
After that the generated CRUD was working also with datartables except for the datetimepicker that is used for date and toimestamp fields. It seems nomore installed/imported from the app.
I tried to search for in inside npm_modules but it's not present.
I tried installing it using npm install bootstrap-datetimepicker (with also the Momentum lib) biyt it copnflicts in some way with the installed jquery version.
The only way I menaged to get it working is to copy the old lines in the version 9 generator admin-lte template and insert them inside the new template in vendor/infyomlabs/laravel-ui-adminlte/resources/views/components/adminlte-layout.blade.php
and it worked but it's not the right way and it doesn't get correctly visualized (probably some css are not anymore correct in that version). This last solution worked but it's a hugly solution, it's probably not a solution at all but a (bad) workaround.
Can someone help me in finding the right way to bring it back working also on Laravel 10?
I'm not a fun of npm and js/css deployment system in general and I'm not experienced in that but it became the standard on L10 so I have to deal with it.
Thank you,
The text was updated successfully, but these errors were encountered:
Deployed the infyom generator with L10 in a standard environment (following the instructions on laravel and Infyom site).
I've been dealing with "jQuery is not a function", "$ is not a function"
=> solved switching from
import 'jquery';
to
import jQuery from 'jquery'; window.$ = jQuery;
in resources/js/app.js and executing "npm run build" in order to bring the updates inside the unified/mi9nified js.
After that the generated CRUD was working also with datartables except for the datetimepicker that is used for date and toimestamp fields. It seems nomore installed/imported from the app.
in the Laravel 9 version Infyom was using the bootstrap-datetimepicker from https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js. In this new version it's just called inside the fields.blade.php file but it's not present in any page or app asset.
I tried to search for in inside npm_modules but it's not present.
I tried installing it using npm install bootstrap-datetimepicker (with also the Momentum lib) biyt it copnflicts in some way with the installed jquery version.
The only way I menaged to get it working is to copy the old lines in the version 9 generator admin-lte template and insert them inside the new template in vendor/infyomlabs/laravel-ui-adminlte/resources/views/components/adminlte-layout.blade.php
and it worked but it's not the right way and it doesn't get correctly visualized (probably some css are not anymore correct in that version). This last solution worked but it's a hugly solution, it's probably not a solution at all but a (bad) workaround.
Can someone help me in finding the right way to bring it back working also on Laravel 10?
I'm not a fun of npm and js/css deployment system in general and I'm not experienced in that but it became the standard on L10 so I have to deal with it.
Thank you,
The text was updated successfully, but these errors were encountered: