usetania / tania-core

Tania is a farm management software for the hobbyist and smallholder farmer.

Home Page:https://usetania.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Upgrading Issue] Can someone help me to look the error in Webpack?

bepitulaz opened this issue · comments

Before adding more features for the next version, I update all JS dependencies. I upgraded Babel 7, Vue 2, and Webpack 4. But, I don't understand why Webpack always fails to build the source code. Can someone help me? This is my PR #32

I'm not good at doing front-end.

After a couple hours of wrestling with Laravel Mix, I think I got it to work.

Still need to test locally though, I'm not good at backend stuff, so I don't know how to get Golang to work locally 😅

image

One minor issue that I still have is this double-slash in the injected HTML. Still investigating.

screen shot 2019-01-22 at 00 03 03

Thank you, @resir014. I will test your works on my laptop. Hopefully, it can be built now.

Slowly getting there...

Now I'm having issues loading dynamic components. Right now I'm trying to tear away the loaders and re-including them one by one. Hopefully it'll work.

image

@resir014 I've tested locally. It compiled successfully, but I notice there's still an error related to pug-loader.

image

You can reproduce it by running yarn run unit or npm run unit. The template is also not completely rendered on the browser (the header and the sidebar are missing.)

image

@bepitulaz Yeah, as I said there's still some problems loading lazy components 😅 Still figuring out why. Will look into it later today.

Oh, that's what you mean about lazy components :D Okay, take your time.

I managed to fix the testing issues!

image

But the package import issue is still happening though. Still investigating...

image

I'm fetching your update. How to reproduce the package import issue?

Ok, I got that error too. yarn run unit and yarn run dev is successfully executed.

@bepitulaz Yeah, that's what I'm still struggling with.

I just got home so I could only respond to your message now, but all I did was running yarn unit, yarn dev, then testing it inside the Go app with go build and running the compiled binary.

@resir014, since our main issue to upgrade dependencies, is solved. I think better if I disable the Vue lazy load for this moment. Because we also want to modify and add some features to the Vue template itself.

It works after I disable it. I will merge your PR ;)

image

@bepitulaz Awesome. Thanks for your help!

@resir014 Big thanks for you! Awesome works!