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

Facing Problem integrating with Laravel #525

Closed
ssmathivanan402 opened this issue Dec 11, 2024 · 3 comments
Closed

Facing Problem integrating with Laravel #525

ssmathivanan402 opened this issue Dec 11, 2024 · 3 comments

Comments

@ssmathivanan402
Copy link

Summary

Facing Problem integrating with Laravel

Steps to Reproduce

Trying to use Preline in Laravel Framwork
Tried the instructions as per the documents. Still not able to figure out what I am missing.
Advanced select not working
DataTable Not worked
Need some improvements in document as well
strugling to integrate with Laravel using mix

Demo Link

Expected Behavior

No response

Actual Behavior

No response

Screenshots

No response

@ssmathivanan402
Copy link
Author

After update into new preline version I got this issue

ERROR in ./node_modules/preline/src/index.ts 8:8
Module parse failed: Unexpected token (8:8)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| */
|

declare var _: any;
| declare var DataTable: any;
| declare var Dropzone: any;

webpack compiled with 1 error

@MRFD
Copy link

MRFD commented Dec 13, 2024

I ran into the same problem. I finally solved it by modifying this in app.js:

// change
import 'preline'
// into
import "preline/preline";

Hopefully it helps you.

@ssmathivanan402
Copy link
Author

import "preline/preline";

Thank you so much buddy

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

2 participants