How to set up React JS with Parcel V2

How to set up React JS with Parcel V2

The Code Creative

2 года назад

5,682 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@acavbeats
@acavbeats - 06.09.2023 23:45

Do you know if theres a way to use alias with @ symbol in parcel so I can import components like import Card from '@/components/ui/card' ?

Ответить
@bishwajeetpandey1570
@bishwajeetpandey1570 - 27.03.2023 21:20

as beginner to parcel facing an issue please try to help me out ,
According to documentation
Parcel automatically generates sourcemaps by default ,

Fine, it is generating .map files in dist folder but when in i write console.log in my source code or any error thrown from my source file . These message display in the browser console but they still pointing to build files like index.abcderf.js rather than my source file index.js :disappointed:.

So please tell me Is there any way so that console statment or errors maps to my source code file not to build file present in dist folder of parcel?

Ответить
@bishwajeetpandey1570
@bishwajeetpandey1570 - 27.03.2023 21:19

As a beginner to parcel facing an issue please try to help me out ,
According to parcel documentation
Parcel automatically generates sourcemaps by default ,

Fine, it is generating .map files in dist folder but when in i write console.log in my source code or any error thrown from my source file . These message display in the browser console but they still pointing to build files like index.abcderf.js rather than my source file index.js :disappointed:.

So please tell me Is there any way so that console statment or errors maps to my source code file not to build file present in dist folder of parcel?

Ответить
@marekklofera2731
@marekklofera2731 - 02.01.2023 15:05

Hey, parcel only build if I save index.html. If i save index.js there is no build and no hot reload. Any idea how to fix it?

Ответить
@wasteghost
@wasteghost - 12.11.2022 20:35

Really helpful tutorial man, thanks alot :)))))

Ответить
@EyeIn_The_Sky
@EyeIn_The_Sky - 08.11.2022 21:43

Hey Thanks for the concise and clean tutorial. Can you tell us how you would get around the ReactDOM.render being no longer supported as of React 18? I can't find any simple instructions on how to use the "createRoot" for the new API

Ответить
@dazecm
@dazecm - 08.10.2022 22:41

Wow! Newcomer to Parcel here and it seems like a great tool for improving the developer experience when creating React apps. Those blazing fast hot-reload and build times really do super-charge the 'inner dev loop'. Thanks for sharing.

Ответить
@codeozz
@codeozz - 14.08.2022 04:54

I'm new, sorry for the question, parcel 2 is no longer available globally?

Ответить
@reemadsouza310
@reemadsouza310 - 26.06.2022 12:31

Hi, any idea why autoprefixer won't work? I did some flex scss and it won't show with vendor prefixes in compiled css in dist folder. Thank you.

Ответить
@romimaximus
@romimaximus - 20.04.2022 21:54

Awesome tutorial, !!... but i have a question, everytime i need bundle my code, parcel is making copy of my files inside the "dist" folder, just like your folder "dist" in the video, .. so does parcel provides some way or some "plugin", to clean the "dist" folder before rebuild code ?

Ответить
@fsjay
@fsjay - 31.03.2022 18:29

Any code examples on setting up Parcel 2 with React and React Testing Library?

Ответить
@abujafarsiddique7635
@abujafarsiddique7635 - 24.12.2021 06:58

start a react next js series

Ответить