Setup Freya with webpack ( Laravel Mix)

Forum rules
Please note that response time for technical support is within 3-5 business days.
vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

19 Jun 2021, 23:11

Good day,
I just purchase this team i am trying to set it up on Laravel/Vue project

I tried compiling sass/theme/_theme_light.scss i get the error

i get undefined variable $primeColor

please any heads up which scss to compile and i want to change the primary color to teal then compile with webpack

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

21 Jun 2021, 09:01

Hi,

Did you add the layout-*.scss files or the paths of these files is correct?

Best,

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

23 Jun 2021, 13:32

Thanks sorted

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

23 Jun 2021, 15:36

Thanks for the feedback.

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

24 Jun 2021, 21:52

Hello again,
Please little help here, i am trying to figure out this error i am getting

Code: Select all

Uncaught (in promise) TypeError: Cannot read property 'created' of undefined
    at invokeDirectiveHook (app.js?id=15f03f938671c097c160:10965)
    at mountElement (app.js?id=15f03f938671c097c160:11791)
    at processElement (app.js?id=15f03f938671c097c160:11769)
    at patch (app.js?id=15f03f938671c097c160:11689)
    at componentEffect (app.js?id=15f03f938671c097c160:12214)
    at reactiveEffect (app.js?id=15f03f938671c097c160:6078)
    at effect (app.js?id=15f03f938671c097c160:6053)
    at setupRenderEffect (app.js?id=15f03f938671c097c160:12160)
    at mountComponent (app.js?id=15f03f938671c097c160:12119)
    at processComponent (app.js?id=15f03f938671c097c160:12077)
This happens when i import AppSubmenu from the theme, please any heads up where to troubleshoot i will appreciate.
I am loving the theme so far, thanks for the good work

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

25 Jun 2021, 09:13

Hi,

Did you add AppWrapper.vue and AppMenu.vue files and import the AppWrapper.vue in main.js?

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

26 Jun 2021, 19:31

I have checked i imported everything except router ,
I think the issue can be with vue-router, i don't use vue router and reading the docs status it uses MenuModel API which requires vue-router
Can that be the problem?

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

28 Jun 2021, 08:36

Hi,

Yes, we used the PrimeVue MenuModel while designing Freya and for MenuModel, Vue-Router is a dependency.

If you won't use Vue-Router in your project, you could consider rewrite your own menu without router.

Best,

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

28 Jun 2021, 08:46

Great thanks for your reply i appreciate i can do that

There is one more thing i added all styles but for some reason components styles are missing

screen shot https://prnt.sc/178h2j0

I don't know if there are some extra steps to get components style compiled in Laravel Mix, everything works well with vue cli


I don't know which styles i missed

Please any heads up

Thanks alot

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

28 Jun 2021, 20:40

I got it sorted thanks for you help

Post Reply

Return to “Freya - PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest