React TypeScript Webpack - Setup From Scratch (1/8)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • ⚡️ Checkout Taskade! www.taskade.com/
    📘 Courses - learn.codevolu...
    💖 Support UPI - support.codevo...
    💖 Support PayPal - www.paypal.me/...
    💾 Github - github.com/gop...
    📱 Follow Codevolution
    Twitter - / codevolutionweb
    Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    React TypeScript Webpack - Setup From Scratch

ความคิดเห็น • 93

  • @Codevolution
    @Codevolution  3 ปีที่แล้ว +3

    Give Taskade a try - www.taskade.com/
    Request for 1 year free upgrade by mentioning Codevolution - www.taskade.com/contact

  • @marcusmelodious277
    @marcusmelodious277 3 ปีที่แล้ว +46

    Vishwas, you've done thousands of React developers all over one of the biggest favors in the world. You are the BEST mate!! Absolute best.

  • @abcdefgboom1
    @abcdefgboom1 ปีที่แล้ว +1

    Believe me, this is the best tutorial on TH-cam on this topic to me....

  • @jairovera8065
    @jairovera8065 ปีที่แล้ว +2

    This is the GOD Tier React/Webpack/TypeScript tutorial!

  • @rorycawley8334
    @rorycawley8334 3 ปีที่แล้ว +3

    This is the best series of videos on setting up your TS/React coding env - thanks for going to the trouble to get some much detail, the quality of this is so high. Well done!

  • @nelsonfleig5024
    @nelsonfleig5024 2 ปีที่แล้ว +1

    Just what I was looking for. Some job interviews ask about using Webpack to set up React and I've been spoiled with CRA, React Vite, and Nextjs so I never took the time to set up everything from scratch. Thank you so much!!

  • @MessiLeonelle
    @MessiLeonelle 5 หลายเดือนก่อน

    Well, it's exactly what i needed. You helping me with redux tutorial first and now you helping me with WP, thank you man.

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 4 หลายเดือนก่อน

    Never though that creating React project from scratch would be that much fun. Thanks Vishwas 😃😃

  • @xiaotingshao3689
    @xiaotingshao3689 2 ปีที่แล้ว +1

    really good video for the juniors, thank you so much, Vishwas. You really understand what we need to expand our knowledge and skills. 🥰

  • @anastaleb3617
    @anastaleb3617 3 ปีที่แล้ว +2

    You're killing it man 💪 you have the best react content in the TH-cam
    Keep going

  • @ypucandeleteit
    @ypucandeleteit 3 ปีที่แล้ว

    thank you for making this and explaining what the different config properties are for. Webpack has been causing me a lot of pain and this video is the remedy

  • @saitanush9453
    @saitanush9453 5 หลายเดือนก่อน

    Tq bro, you're a saviour for React developers

  • @idevbrandon
    @idevbrandon 3 ปีที่แล้ว

    Wow.. thank you so much. 3 things required to be FE developer here are React/TypeScript and Webpack knowledge

  • @rohithsatyanivas4006
    @rohithsatyanivas4006 ปีที่แล้ว

    This is pure gold ⭐! Great content man!
    Thanks a lot!

  • @jgv4945
    @jgv4945 3 ปีที่แล้ว +1

    Yeah! Have been waiting for this. Thanks you!

  • @IrvingWash
    @IrvingWash 2 ปีที่แล้ว

    Thank you very much, I was looking for something like this for months

  • @easyfinanceexplained
    @easyfinanceexplained 3 ปีที่แล้ว

    Hey, You're doing great work. The way you understand every topic made me feel that you have a deep understanding of the relevant topic. Thanks again, man.......... Best of luck.

  • @xMoSicc
    @xMoSicc 2 ปีที่แล้ว

    Thanks for working stuff. Lot of ppl write blogs and make so many errors. U dont! thanks a lot. I was getting crazy cuz of a lil mistake

  • @todorg.6868
    @todorg.6868 2 ปีที่แล้ว

    You are amazing Vishvas. Thank you for this amazing videos!

  • @Dipenparmar12
    @Dipenparmar12 3 ปีที่แล้ว

    Hi, I just wanted to tell you this Setup/Config series is great enjoyable. Thanks for such an great tutorials.

  • @kollabor8
    @kollabor8 ปีที่แล้ว

    Warning: This is outdated, but still well worth watching, make sure you keep updated with the technology, I'm writing this as there have been many changes in the stack

  • @GauravJoshi-Vlogs
    @GauravJoshi-Vlogs 3 ปีที่แล้ว +1

    Eagerly waiting for this series and finally we have it... Thnx!!

  • @grandmaster-yo-yo
    @grandmaster-yo-yo 2 หลายเดือนก่อน

    Best tutorial! Thank you so much!

  • @parasbuda9174
    @parasbuda9174 3 ปีที่แล้ว +2

    thank alot for this series hope in future next js will also come

    • @compeng2013
      @compeng2013 3 ปีที่แล้ว

      Max released an epic course recently

    • @tikeswarnaik827
      @tikeswarnaik827 3 ปีที่แล้ว

      @@compeng2013 Can you share the link?

  • @nargesa.n756
    @nargesa.n756 ปีที่แล้ว

    Thank you.
    Please note that at the time I am writing this comment we need to add '@babel/plugin-transform-runtime' as well.

  • @bassam.2023
    @bassam.2023 2 ปีที่แล้ว

    Another brilliant tutorial!
    Unfortunately, hard to follow along in Oct 2022, but that is always the case with web dev related stuff.
    Thanks though!!

  • @Taskade
    @Taskade 3 ปีที่แล้ว

    Awesome video! Thanks for putting this together. 🙌

  • @sheikhmuhammedshoaib1124
    @sheikhmuhammedshoaib1124 3 ปีที่แล้ว +1

    Thanks for this series

  • @DIYcollection
    @DIYcollection 2 ปีที่แล้ว

    Absolutely great tutorial! Thank you very much!

  • @carlosayalav
    @carlosayalav 3 ปีที่แล้ว

    Amazing !! im just about to initialize a project in Typescript with React and Microfront Architecture with webpack federated modules. Thank you so much !!

  • @amirovuz
    @amirovuz 3 ปีที่แล้ว +1

    Awesome! thank you Mr Wishwas.

  • @mohdnawazishalam3255
    @mohdnawazishalam3255 3 ปีที่แล้ว

    Thanks a lot for creating this course

  • @МаксимПирожков-ы3т
    @МаксимПирожков-ы3т 2 ปีที่แล้ว

    Thank you soo much for this video!!!

  • @sameeramrutia18
    @sameeramrutia18 3 ปีที่แล้ว

    Vishvas Bro...! you are just too good. The teaching methodology is amazing.. keep it up.. & Big thank you for this series. i would like to know more about Webpack 5 chunk splitting functionalities and mono repo. if you can add 2-3 more session to same..? Thanks a ton..! god bless you.

  • @grandmaster-yo-yo
    @grandmaster-yo-yo 2 หลายเดือนก่อน

    Brother what is your color theme in vs code? I like it so much

  • @a2m2tkyo
    @a2m2tkyo 3 ปีที่แล้ว +1

    why is the webpack.config.js file different in the video than the one in the repo? Which is the correct one to utilize for this portion of the guide?

  • @chazontour8588
    @chazontour8588 3 ปีที่แล้ว

    Great series. I notice the link to the repo containing supporting files isn't available in the description as you said.

    • @Codevolution
      @Codevolution  3 ปีที่แล้ว

      Here you go - github.com/gopinav/React-TypeScript-Webpack-Starter

  • @aaronortiz1366
    @aaronortiz1366 3 ปีที่แล้ว +6

    Great video! I have a doubt: Why in github files the webpack.config.js is different in video? Github file is shorter, and if I copy-paste all webpack files inside the directory the terminal returns Cannot find module './webpack.undefined.js' error. That doesn't happen if I write the content of webpack.common.js inside webpack.config.js. Thanks for answering and again, great videos!

    • @bltom6806
      @bltom6806 3 ปีที่แล้ว +7

      He refactored his code.
      You can copy the 4 webpack config files (now splited) as it.
      You need now to precise your environment, so in `package.json`, specify the `env`:
      "start": "webpack serve --config webpack/webpack.config.js --env env=dev --open",
      Also add few packages:
      yarn add -D @babel/plugin-transform-runtime @pmmmwh/react-refresh-webpack-plugin react-refresh
      `yarn start` And All good!
      If at start it asks for missing package, just add it.
      Next lesson he'll explain that.

  • @VaibhavMane604
    @VaibhavMane604 2 ปีที่แล้ว

    Please make one video on Vite + react + TS setup

  • @joecolas
    @joecolas 3 ปีที่แล้ว

    very good tuto . thank you

  • @harrisonekpobimi4764
    @harrisonekpobimi4764 3 ปีที่แล้ว

    Superb

  • @evangeloskolimitras5276
    @evangeloskolimitras5276 3 ปีที่แล้ว

    Are you sure this tsconfig setup is proper for browser compatibility?

  • @chandramabishi4779
    @chandramabishi4779 3 ปีที่แล้ว +1

    please make a video on server side rendering SSR

  • @dinesh8112
    @dinesh8112 3 ปีที่แล้ว

    Dude, you are the best. Is it possible for you to make a course on redux forms please?

  • @vaibhavmatere18
    @vaibhavmatere18 2 ปีที่แล้ว

    .babelrc is automatically created and we don't need to create it separately now.

  • @romimaximus
    @romimaximus 3 ปีที่แล้ว +1

    I wish you could make a video tutotrial like this react/webpack setup, but with no "Typescript" 👍

    • @PumpkinDog33
      @PumpkinDog33 3 ปีที่แล้ว +2

      typescript starts out feeling annoying/constricting but eventually you'll hate using regular javascript because everything feels so unkept and naked.

    • @romimaximus
      @romimaximus 3 ปีที่แล้ว

      @@PumpkinDog33 i think is a pain.!! , very confusing and complicated.!!, every time you create a variable, a function , a object, or even passig a "prop", you have to remember to creater a "interface", and a bunch of oher stuff....and the you have to complie back to javascript !!, its like walking backwards..and at end, it all comes down to plain compiled javascript !!! it doesn't makes sense..!! 😂😂😂

  • @THEGhost902
    @THEGhost902 3 ปีที่แล้ว

    Why do you use babel instead of ts-loader?

  • @reactivicky
    @reactivicky 3 ปีที่แล้ว

    Awesome

  • @AshutoshSharma-ml6sv
    @AshutoshSharma-ml6sv 2 ปีที่แล้ว

    Why these are added as devDependancy: typescript @types/react @types/react-dom ?

  • @shaita8704
    @shaita8704 2 ปีที่แล้ว

    please create a playlist on react native

  • @ynaveenkmr5943
    @ynaveenkmr5943 2 หลายเดือนก่อน

    Hi Vishwas I like your all videos & all are awesome & all are real time examples only, please can you upload these with latest versions of react 18+ & typescript.

  • @rishabhsharma6084
    @rishabhsharma6084 3 ปีที่แล้ว +1

    Sorrry Vishwas, but when my server runs it shows the directory of the project instead of rendering App.tsx ... what should I do? 😣

  • @plamenyovchev
    @plamenyovchev 3 ปีที่แล้ว

    Why not simply use create react app typescript template?

  • @sairarasheed3411
    @sairarasheed3411 3 ปีที่แล้ว

    after making app.tsx file in source folder i get the error "Cannot use JSX unless the '--jsx' flag is provided" can you resolve it??

  • @MrDima123123
    @MrDima123123 2 ปีที่แล้ว

    Hello. Thank you for awesome tutorial!
    But I found some problem. If I make a mistake with Typescript code, then build will be created successfully. Also "npm start" will be executed successfully too.
    Something like:
    let a = 90
    a += 'dfdfdf'
    It is possible to prevent building process or starting app if typescript errors exists ?

    • @MrDima123123
      @MrDima123123 2 ปีที่แล้ว

      @Ayomide Bamigboye thank you for your advice

  • @Pspisripoff
    @Pspisripoff 3 ปีที่แล้ว

    Somehow proxy doesnt work with this webpack setup...

  • @Nikhilsharma-dp9tw
    @Nikhilsharma-dp9tw 3 ปีที่แล้ว

    Hey @codevolution, why there isn't much discussion on react typescript in the community, even most of the projects on git are using pure js. is there some reason ? I'm from angular background, so I'm conscious on types

    • @madhousenetwork
      @madhousenetwork 3 ปีที่แล้ว +1

      not sure about that. But I'm working in react projects since 1 and half years. we use Typescript for react

  • @bottletyre
    @bottletyre 3 ปีที่แล้ว

    After an edit of a text in App.tsx file why it is so slow in compilation to reflect in Browser? Can the compilation time be decreased ?

    • @Codevolution
      @Codevolution  3 ปีที่แล้ว +1

      Yes, I'll cover that in part 4 :)

  • @galony3151
    @galony3151 3 ปีที่แล้ว

    :( I need Help!!
    When i try run the code, this return that : Content security police: The page option has been blocked

    • @lunaeclipse5768
      @lunaeclipse5768 3 ปีที่แล้ว

      this is wat hppens when u follow along tutorial

  • @abhaykumar9806
    @abhaykumar9806 3 ปีที่แล้ว

    Unable to contribute on your support link - paypal. Please let me know,

  • @soumyapriyadarshi3833
    @soumyapriyadarshi3833 ปีที่แล้ว

    help :)) I am getting error like this. Please help
    Failed to load 'D:\Documents
    eact-ts-nextjs\webpack\webpack' config
    Error: Cannot find module 'D:\Documents
    eact-ts-nextjs\webpack.config.js'

  • @chandramabishi4779
    @chandramabishi4779 3 ปีที่แล้ว

    what about bundle.js file

  • @kalesmca
    @kalesmca 3 ปีที่แล้ว

    I want build file is like react-app-cli build

  • @m.ssmanianmanian1168
    @m.ssmanianmanian1168 3 ปีที่แล้ว

    [webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
    - configuration has an unknown property 'plugin'. These properties are valid:
    object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, experiments?, externals?, externalsPresets?, externalsType?, ignoreWarnings?, infrastructureLogging?, loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, snapshot?, stats?, target?, watch?, watchOptions? }
    -> Options object as provided by the user.
    For typos: please correct them.
    For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.
    Loaders should be updated to allow passing options via loader options in module.rules.
    Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
    plugins: [
    new webpack.LoaderOptionsPlugin({
    // test: /\.xxx$/, // may apply this only for some modules
    options: {
    plugin: …
    }
    })
    ]
    please answer me, why should this error is coming... webpack version as bellow,
    "webpack": "^5.36.0",
    "webpack-cli": "^4.6.0",
    "webpack-dev-server": "^3.11.2"
    "html-webpack-plugin": "^5.3.1",

  • @eleah2665
    @eleah2665 3 ปีที่แล้ว

    "Short" series??!!

  • @muhammadyusoffjamaluddin
    @muhammadyusoffjamaluddin 2 ปีที่แล้ว

    I dont know if you even rewatch your video when posted. Along this tutorial I have a hard time to follow whatever you wrote on the terminal.
    No, serious sir please pull that terminal curtain up. Thank you.

  • @iUmerFarooq
    @iUmerFarooq 3 ปีที่แล้ว

    Will you tech Laravel?

  • @iUmerFarooq
    @iUmerFarooq 3 ปีที่แล้ว +1

    But why we need to do this we have already npm commands to generate the same template?

    • @Viveksharma0157
      @Viveksharma0157 3 ปีที่แล้ว

      Yes that’s also i want to know why we need this
      What’s the difference between
      Plz reply @codevolution

    • @jgv4945
      @jgv4945 3 ปีที่แล้ว +1

      @@Viveksharma0157 He explains it right at the beginning in the introduction.

    • @Nikhilsharma-dp9tw
      @Nikhilsharma-dp9tw 3 ปีที่แล้ว

      To understand what exactly is happening under the hood, with this you have full control of your project

  • @MohitKumar-so4yf
    @MohitKumar-so4yf 2 ปีที่แล้ว

    Bhai jhappi dede

  • @arcan762
    @arcan762 3 ปีที่แล้ว

    Why is this still such a pain in the ass??

  • @iUmerFarooq
    @iUmerFarooq 3 ปีที่แล้ว

    But why you're not using JavaScript instead of Typescript?

  • @rephaelsintes7275
    @rephaelsintes7275 ปีที่แล้ว

    hi,
    Thank you for this course
    I have some problems at the end of the video
    Everything is working fine until the last command 'npm start'
    It display an error and I can't find answer on google
    PS C:\Users\USER\Documents\Courses\React & Webpack> npm start
    > react-template@1.0.0 start
    > webpack serve --config ./webpack/webpack.config.js --open
    'Webpack
    ode_modules\.bin\' is not recognized as an internal or external command,
    operable program or batch file.
    node:internal/modules/cjs/loader:1085
    throw err;
    ^
    Error: Cannot find module 'C:\Users\USER\Documents\Courses\webpack\bin\webpack.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at Module._load (node:internal/modules/cjs/loader:928:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
    }
    It some how try to find the webpack.js in a non existing path
    'C:\Users\USER\Documents\Courses\webpack\bin\webpack.js'

  • @aguspray
    @aguspray 2 ปีที่แล้ว

    you can generate your own tsconfig.json by typing : node_modules/.bin/tsc --init

  • @batm1x
    @batm1x 2 ปีที่แล้ว

    It doesn't work in oct 2022. Module build failed (from ./node_modules/babel-loader/lib/index.js):

  • @srinathvu1542
    @srinathvu1542 3 ปีที่แล้ว

    Thank you so much for this series