+ 3
JavaScript Webpack issues
So in NodeJS, Iāve installed Webpack, but Iām also using Babel to transpile my new code into older versions. Iām having trouble getting webpack to execute my javascript import statements, but babel works great. Does anyone have some tips for like how to make webpack config file or how to get webpack to run before babel? Any help or tips would be greatly appreciated, Iām pretty new to NodeJS and the express NodeJS framework.
11 Answers
+ 3
We need to build setup for webpack to run well, it's overwhelming for a lots of beginners.
You should try to use parcel.js, it's much easy to setup, it would likely to replace webpack later.
If you interested on Parcel, check out this video, an easy to kick start tutorial.
https://youtu.be/b-6BeS-22yw
+ 4
try parcel
+ 2
Yes, you would.. just check out the video, i think you would like to use Parcel instead of webpack.
+ 2
One thing to keep in mind when using Parcel:
run command: parcel index.html
Not parcel, which demo on the tutorial.
+ 2
The youtuber also has great React tutorials.
+ 1
CalviÕ² that tutorial is surprisingly good! Iām glad it covers react too, I may hop into that sometime too. Thank you, now I just need to work on getting it all to work in Webstorm
+ 1
CalviÕ² I will definitely check em out, Iām currently starting to learn tensorflowjs btw, thatās why Iām jumping into all this haha Glad to see someone experienced on here
0
thank you CalviÕ² I can look into parcel, the libraries I want to use mentioned it, but my friend recommended webpack lol Would I still creat a bundle.js file and such for all the files I need?
0
thank you for the tutorial too!
0
hmhm
0
thanx very much