ahmedsaoud31 / laravel-permission-to-vuejs

Laravel Permission Package To Use it in VueJs
96 stars 30 forks source link

Not working with transfer from mix to vite #21

Closed xlcrr closed 3 months ago

xlcrr commented 5 months ago

Getting this error using vue 2

[plugin:vite:import-analysis] Failed to resolve entry for package "laravel-permission-to-vuejs". The package may have incorrect main/module/exports specified in its package.json.

Fails here

import LaravelPermissionToVueJS from 'laravel-permission-to-vuejs';

>>> Vue.use(LaravelPermissionToVueJS);
xlcrr commented 4 months ago

Potential fix here

https://github.com/ahmedsaoud31/laravel-permission-to-vuejs/pull/22

xlcrr commented 4 months ago

If anyone wants to see how I fixed it by importing one js file into my project

https://github.com/OpenLitterMap/openlittermap-web/pull/648/commits/3ba0b52bec59f260d83ba59d8dc93599f151b602

ahmedsaoud31 commented 3 months ago

22