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

Поделиться
HTML-код
  • Опубликовано: 21 мар 2021
  • ⚡️ Checkout Taskade! www.taskade.com/
    📘 Courses - learn.codevolution.dev/
    💖 Support UPI - support.codevolution.dev/
    💖 Support PayPal - www.paypal.me/Codevolution
    💾 Github - github.com/gopinav/React-Type...
    📱 Follow Codevolution
    + Twitter - / codevolutionweb
    + Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    React TypeScript Webpack - Setup From Scratch

Комментарии • 87

  • @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 года назад +45

    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.

  • @rorycawley8334
    @rorycawley8334 2 года назад +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!

  • @anastaleb3617
    @anastaleb3617 3 года назад +2

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

  • @nelsonfleig5024
    @nelsonfleig5024 Год назад +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!!

  • @easyfinanceexplained
    @easyfinanceexplained 2 года назад

    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.

  • @ypucandeleteit
    @ypucandeleteit 2 года назад

    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

  • @abcdefgboom1
    @abcdefgboom1 6 месяцев назад +1

    Believe me, this is the best tutorial on RUclips on this topic to me....

  • @jgv4945
    @jgv4945 3 года назад +1

    Yeah! Have been waiting for this. Thanks you!

  • @xiaotingshao3689
    @xiaotingshao3689 Год назад +1

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

  • @Dipenparmar12
    @Dipenparmar12 2 года назад

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

  • @jairovera8065
    @jairovera8065 5 месяцев назад +1

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

  • @GauravJoshi-Vlogs
    @GauravJoshi-Vlogs 3 года назад +1

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

  • @Taskade
    @Taskade 3 года назад

    Awesome video! Thanks for putting this together. 🙌

  • @todorg.6868
    @todorg.6868 2 года назад

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

  • @IrvingWash
    @IrvingWash 2 года назад

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

  • @rohithsatyanivas4006
    @rohithsatyanivas4006 6 месяцев назад

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

  • @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 !!

  • @DIYcollection
    @DIYcollection 2 года назад

    Absolutely great tutorial! Thank you very much!

  • @sheikhmuhammedshoaib1124
    @sheikhmuhammedshoaib1124 3 года назад +1

    Thanks for this series

  • @srinathvu1542
    @srinathvu1542 3 года назад

    Thank you so much for this series

  • @idevbrandon
    @idevbrandon 3 года назад

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

  • @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.

  • @mohdnawazishalam3255
    @mohdnawazishalam3255 3 года назад

    Thanks a lot for creating this course

  • @amirovuz
    @amirovuz 3 года назад +1

    Awesome! thank you Mr Wishwas.

  • @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

  • @bassam.2023
    @bassam.2023 Год назад

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

  • @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?

  • @user-kw5yy1gi7e
    @user-kw5yy1gi7e 2 года назад

    Thank you soo much for this video!!!

  • @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?

  • @kollabor8
    @kollabor8 6 месяцев назад

    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

  • @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.

  • @joecolas
    @joecolas 3 года назад

    very good tuto . thank you

  • @dinesh8112
    @dinesh8112 3 года назад

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

  • @THEGhost902
    @THEGhost902 3 года назад

    Why do you use babel instead of ts-loader?

  • @chazontour8588
    @chazontour8588 2 года назад

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

    • @Codevolution
      @Codevolution  2 года назад

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

  • @chandramabishi4779
    @chandramabishi4779 3 года назад +1

    please make a video on server side rendering SSR

  • @evangeloskolimitras5276
    @evangeloskolimitras5276 2 года назад

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

  • @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??

  • @harrisonekpobimi4764
    @harrisonekpobimi4764 2 года назад

    Superb

  • @VaibhavMane604
    @VaibhavMane604 Год назад

    Please make one video on Vite + react + TS setup

  • @plamenyovchev
    @plamenyovchev 3 года назад

    Why not simply use create react app typescript template?

  • @reactivicky
    @reactivicky 2 года назад

    Awesome

  • @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

    • @madhousenetwork7765
      @madhousenetwork7765 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 :)

  • @shaita8704
    @shaita8704 Год назад

    please create a playlist on react native

  • @abhaykumar9806
    @abhaykumar9806 3 года назад

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

  • @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 Год назад

      @Ayomide Bamigboye thank you for your advice

  • @chandramabishi4779
    @chandramabishi4779 3 года назад

    what about bundle.js file

  • @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..!! 😂😂😂

  • @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? 😣

  • @AshutoshSharma-ml6sv
    @AshutoshSharma-ml6sv 2 года назад

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

  • @Pspisripoff
    @Pspisripoff 2 года назад

    Somehow proxy doesnt work with this webpack setup...

  • @iUmerFarooq
    @iUmerFarooq 3 года назад

    Will you tech Laravel?

  • @vaibhavmatere18
    @vaibhavmatere18 Год назад

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

  • @kalesmca
    @kalesmca 2 года назад

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

  • @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'

  • @galony3151
    @galony3151 2 года назад

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

    • @lunaeclipse5768
      @lunaeclipse5768 2 года назад

      this is wat hppens when u follow along tutorial

  • @eleah2665
    @eleah2665 3 года назад

    "Short" series??!!

  • @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",

  • @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

  • @iUmerFarooq
    @iUmerFarooq 3 года назад

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

  • @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.

  • @MohitKumar-so4yf
    @MohitKumar-so4yf 2 года назад

    Bhai jhappi dede

  • @arcan762
    @arcan762 2 года назад

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

  • @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.

  • @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 Год назад

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

  • @batm1x
    @batm1x Год назад

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